build(config): 配置内存缓存提升构建性能

- 在 webpack 配置中启用 memory 类型缓存- 优化开发环境构建速度
- 减少重复构建时的资源消耗
This commit is contained in:
2025-11-02 21:37:06 +08:00
parent 028eac95a1
commit 865c2556cf

View File

@@ -55,6 +55,9 @@ module.exports = {
port: 8082
},
configureWebpack: config => {
config.cache = {
type: "memory"
}
config.devtool = 'source-map'
config.optimization = {
minimizer: [