18
This commit is contained in:
+8
-8
@@ -1,12 +1,12 @@
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
// 开启缓存
|
||||
cache: true,
|
||||
// 并行构建
|
||||
parallel: require('os').cpus().length > 1,
|
||||
// 关闭sourcemap加速生产构建
|
||||
productionSourceMap: false
|
||||
},
|
||||
// configureWebpack: {
|
||||
// // 开启缓存
|
||||
// cache: true,
|
||||
// // 并行构建
|
||||
// parallel: true,
|
||||
// // 关闭sourcemap加速生产构建
|
||||
// productionSourceMap: false
|
||||
// },
|
||||
// 关闭文件hash (开发环境)
|
||||
filenameHashing: process.env.NODE_ENV !== 'production'
|
||||
}
|
||||
Reference in New Issue
Block a user