feat: accelerate webpack builds with filesystem cache (#28282)
This commit is contained in:
parent
e4f93b293f
commit
ec8351d336
|
|
@ -2,3 +2,4 @@ coverage/*
|
||||||
cypress/screenshots
|
cypress/screenshots
|
||||||
cypress/videos
|
cypress/videos
|
||||||
src/temp
|
src/temp
|
||||||
|
.temp_cache/
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,13 @@ const config = {
|
||||||
spa: addPreamble('/src/views/index.tsx'),
|
spa: addPreamble('/src/views/index.tsx'),
|
||||||
embedded: addPreamble('/src/embedded/index.tsx'),
|
embedded: addPreamble('/src/embedded/index.tsx'),
|
||||||
},
|
},
|
||||||
|
cache: {
|
||||||
|
type: 'filesystem', // Enable filesystem caching
|
||||||
|
cacheDirectory: path.resolve(__dirname, '.temp_cache'),
|
||||||
|
buildDependencies: {
|
||||||
|
config: [__filename],
|
||||||
|
},
|
||||||
|
},
|
||||||
output,
|
output,
|
||||||
stats: 'minimal',
|
stats: 'minimal',
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue