|
|
|
@ -1,4 +1,17 @@ |
|
|
|
const { defineConfig } = require('@vue/cli-service') |
|
|
|
module.exports = defineConfig({ |
|
|
|
transpileDependencies: true |
|
|
|
}) |
|
|
|
// vue.config.js
|
|
|
|
module.exports = { |
|
|
|
transpileDependencies: true, |
|
|
|
parallel: false, |
|
|
|
productionSourceMap: false, // 关闭 source map 加速构建
|
|
|
|
configureWebpack: { |
|
|
|
performance: { |
|
|
|
hints: false |
|
|
|
}, |
|
|
|
optimization: { |
|
|
|
splitChunks: { |
|
|
|
chunks: 'all' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |