feat: accelerate webpack builds with filesystem cache (#28282)

This commit is contained in:
Maxime Beauchemin 2024-04-30 23:18:20 -07:00 committed by GitHub
parent e4f93b293f
commit ec8351d336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -2,3 +2,4 @@ coverage/*
cypress/screenshots
cypress/videos
src/temp
.temp_cache/

View File

@ -212,6 +212,13 @@ const config = {
spa: addPreamble('/src/views/index.tsx'),
embedded: addPreamble('/src/embedded/index.tsx'),
},
cache: {
type: 'filesystem', // Enable filesystem caching
cacheDirectory: path.resolve(__dirname, '.temp_cache'),
buildDependencies: {
config: [__filename],
},
},
output,
stats: 'minimal',
/*