使用Taro开发模板进行开发的纸通宝交易版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
736 B

module.exports = {
env: {
NODE_ENV: '"production"'
},
defineConstants: {
},
mini: {
webpackChain(chain) {
chain.plugin('analyzer')
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
.end()
.plugin('stats')
.use(require('stats-webpack-plugin'),['../dist_state/stats.json',{ chunkModules: true,exclude: [/node_modules[\\\/]vue/] }])
}
},
h5: {
/**
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
* 参考代码如下:
* webpackChain (chain) {
* chain.plugin('analyzer')
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
* }
*/
}
}