diff --git a/.gitignore b/.gitignore index 48bc61edffb5e..b5af9b81befa9 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,4 @@ celerybeat.pid geckodriver.log ghostdriver.log testCSV.csv +.terser-plugin-cache/ diff --git a/.travis.yml b/.travis.yml index 2c021a63366b7..d7068ba1976ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -95,4 +95,4 @@ cache: - ~/.npm - ~/.cache - ~/.travis_cache/ - - superset/assets/node_modules/.cache/terser-webpack-plugin/ + - superset/assets/.terser-plugin-cache/ diff --git a/superset/assets/webpack.config.js b/superset/assets/webpack.config.js index 4c587c8b49573..97a51de8130e5 100644 --- a/superset/assets/webpack.config.js +++ b/superset/assets/webpack.config.js @@ -270,7 +270,7 @@ const config = { if (!isDevMode) { config.optimization.minimizer = [ new TerserPlugin({ - cache: true, + cache: '.terser-plugin-cache/', parallel: true, extractComments: true, }),