您好,经调研,目前有一个临时的结局方案,在vue.config.js中添加productionSourceMap: false配置项,能提高build速度。
参考以下代码:
- // vue.config.js
- const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
- const smp = new SpeedMeasurePlugin()
- module.exports = {
- configureWebpack: smp.wrap({
- plugins: []
- }),
- productionSourceMap: false // add this flag to speed up building process
- }
复制代码 |