26 lines
600 B
JavaScript
26 lines
600 B
JavaScript
const path = require('path')
|
||
module.exports = {
|
||
env: {
|
||
NODE_ENV: '"production"'
|
||
},
|
||
defineConstants: {
|
||
},
|
||
mini: {},
|
||
h5: {
|
||
/**
|
||
* 如果h5端编译后体积过大,可以使用webpack-bundle-analyzer插件对打包体积进行分析。
|
||
* 参考代码如下:
|
||
* webpackChain (chain) {
|
||
* chain.plugin('analyzer')
|
||
* .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
||
* }
|
||
*/
|
||
},
|
||
alias: {
|
||
'@': path.resolve(__dirname, '..', 'src'),
|
||
},
|
||
sass: {
|
||
resource: path.resolve(__dirname, '..', 'src/styles/common.scss')
|
||
}
|
||
}
|