【发布时间】:2019-11-18 00:16:32
【问题描述】:
我正在将 Nextjs 应用程序部署到 Zeit,但根据它要求添加的文档
module.exports = {
target: 'serverless'
}
如在 next.config.js 中
但我的文件已经包含一个 module.export
const withCSS = require('@zeit/next-css')
module.exports = withCSS({
webpack: function (config) {
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
name: '[name].[ext]'
},
},
},
)
return config
}
},
)
如何将这些导出合并为一个。请帮帮我!
我尝试按照本期https://github.com/zeit/next-plugins/issues/34 和https://github.com/zeit/next-plugins/issues/7 中的建议进行操作
但是 withCSS({}) 没有例子
【问题讨论】: