You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/05/01 06:18:25 UTC

(superset) branch master updated: feat: accelerate webpack builds with filesystem cache (#28282)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ec8351d336 feat: accelerate webpack builds with filesystem cache (#28282)
ec8351d336 is described below

commit ec8351d33673754f6b85becded8eaa7118aa8a3c
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Tue Apr 30 23:18:20 2024 -0700

    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 0598bbb0b6..c474d896d7 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 4b6308c9d7..118731754e 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',
   /*