mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-03 20:48:44 +08:00
18 lines
490 B
JavaScript
18 lines
490 B
JavaScript
const {defineConfig} = require('@vue/cli-service');
|
|
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
productionSourceMap: false,
|
|
configureWebpack: {
|
|
plugins: []
|
|
},
|
|
chainWebpack: (config) => {
|
|
if (process.env.NODE_ENV === 'production') {
|
|
config.plugin('webpack-report')
|
|
.use(require('webpack-bundle-analyzer')
|
|
.BundleAnalyzerPlugin, [{analyzerMode: 'static', openAnalyzer: false}]);
|
|
config.plugins.delete('prefetch')
|
|
}
|
|
}
|
|
})
|