mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 22:36:43 +08:00
build(config): 配置内存缓存提升构建性能
- 在 webpack 配置中启用 memory 类型缓存- 优化开发环境构建速度 - 减少重复构建时的资源消耗
This commit is contained in:
@@ -55,6 +55,9 @@ module.exports = {
|
||||
port: 8082
|
||||
},
|
||||
configureWebpack: config => {
|
||||
config.cache = {
|
||||
type: "memory"
|
||||
}
|
||||
config.devtool = 'source-map'
|
||||
config.optimization = {
|
||||
minimizer: [
|
||||
|
||||
Reference in New Issue
Block a user