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', /*