This commit is contained in:
2026-03-20 16:40:16 +08:00
parent deb949600b
commit 230bb76f63
23 changed files with 9306 additions and 637 deletions

View File

@ -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') {