From ec8351d33673754f6b85becded8eaa7118aa8a3c Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 30 Apr 2024 23:18:20 -0700 Subject: [PATCH] feat: accelerate webpack builds with filesystem cache (#28282) --- superset-frontend/.gitignore | 1 + superset-frontend/webpack.config.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/superset-frontend/.gitignore b/superset-frontend/.gitignore index 0598bbb0b..c474d896d 100644 --- a/superset-frontend/.gitignore +++ b/superset-frontend/.gitignore @@ -2,3 +2,4 @@ coverage/* cypress/screenshots cypress/videos src/temp +.temp_cache/ diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 4b6308c9d..118731754 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -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', /*