1 Star 0 Fork 0

爱生活,爱JAVA/codecombat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.analyzer.config.js 632 Bytes
一键复制 编辑 原始数据 按行查看 历史
Scott Erickson 提交于 2017-12-28 03:41 +08:00 . Add analyzer package script
// 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()
])
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/suncf/codecombat.git
git@gitee.com:suncf/codecombat.git
suncf
codecombat
codecombat
master

搜索帮助