提交
This commit is contained in:
@ -19,6 +19,10 @@ module.exports = {
|
||||
// 忽略 moment.js 的 locale 文件,减小体积
|
||||
config.plugin('ignore')
|
||||
.use(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)); //忽略/moment/locale下的所有文件
|
||||
|
||||
// 忽略 qiun-data-charts 中非小程序平台的文件,减小体积
|
||||
config.plugin('ignore-qiun-echarts')
|
||||
.use(new webpack.IgnorePlugin(/echarts\.min\.js$/, /qiun-data-charts[\\/]static/));
|
||||
|
||||
// 生产环境优化
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
|
||||
Reference in New Issue
Block a user