在这个webpack初学者工具包https://github.com/webpack/react-starter中,我看到webpack.production.config.js模块并不只导出一个配置对象,而是导出一组配置对象:
module.exports = [
require("./make-webpack-config")({
// commonsChunk: true,
longTermCaching: true,
separateStylesheet: true,
minimize: true
// devtool: "source-map"
}),
require("./make-webpack-config")({
prerender: true
})
];当提供多个配置对象时,在这种情况下会发生什么?在webpack的文件里没有提到
https://stackoverflow.com/questions/29640996
复制相似问题