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.
18 lines
423 B
18 lines
423 B
module.exports = {
|
|
env: {
|
|
NODE_ENV: '"production"'
|
|
},
|
|
defineConstants: {
|
|
},
|
|
mini: {},
|
|
h5: {
|
|
/**
|
|
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
|
|
* 参考代码如下:
|
|
* webpackChain (chain) {
|
|
* chain.plugin('analyzer')
|
|
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
|
* }
|
|
*/
|
|
}
|
|
}
|
|
|