Skip to content

Commit

Permalink
feat: accelerate webpack builds with filesystem cache (#28282)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and pull[bot] committed Aug 15, 2024
1 parent ff901c4 commit 8a41743
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions superset-frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ coverage/*
cypress/screenshots
cypress/videos
src/temp
.temp_cache/
7 changes: 7 additions & 0 deletions superset-frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
/*
Expand Down

0 comments on commit 8a41743

Please sign in to comment.