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