提交 4cd3eb96 编写于 作者: M Mike Greiling

only compress assets in production

上级 cee957f5
......@@ -80,9 +80,6 @@ var config = {
modules: false,
assets: true
}),
new CompressionPlugin({
asset: '[path].gz[query]',
}),
new webpack.IgnorePlugin(/moment/, /pikaday/),
],
......@@ -112,7 +109,10 @@ if (IS_PRODUCTION) {
}),
new webpack.DefinePlugin({
'process.env': { NODE_ENV: JSON.stringify('production') }
})
}),
new CompressionPlugin({
asset: '[path].gz[query]',
}),
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册