1 Star 0 Fork 0

Raisr/codecombat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.analyzer.config.js 658 Bytes
一键复制 编辑 原始数据 按行查看 历史
Saurabh Patel 提交于 2021-06-24 17:58 . upgrade from webpack 3 to 4 (#6331)
// Use this webpack config for bundle analyzer, with `npm run analyzer`
// process.traceDeprecation = true;
const _ = require('lodash');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const baseConfigFn = require('./webpack.base.config')
// Development webpack config
module.exports = (env) => {
if (!env) env = {};
const baseConfig = baseConfigFn(env);
return _.merge(baseConfig, {
output: _.merge({}, baseConfig.output, {
chunkFilename: 'javascripts/chunks/[name].bundle.js',
}),
plugins: baseConfig.plugins.concat([
new BundleAnalyzerPlugin({ generateStatsFile: true })
])
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rasir/codecombat.git
git@gitee.com:rasir/codecombat.git
rasir
codecombat
codecombat
master

搜索帮助