From e4a917e97869d5e3663f602ed1155c36927f8ea0 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 22 Oct 2021 21:56:55 -0600 Subject: [PATCH 1/4] fix: reenabling terser plugin --- docker/docker-frontend.sh | 2 +- superset-frontend/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-frontend.sh b/docker/docker-frontend.sh index 4c0d01e079359..00cfb906c3751 100755 --- a/docker/docker-frontend.sh +++ b/docker/docker-frontend.sh @@ -23,4 +23,4 @@ npm install -f --no-optional --global webpack webpack-cli npm install -f --no-optional echo "Running frontend" -npm run dev +# npm run dev diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 39cdbf015d20d..b28ac9d1fc126 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -274,7 +274,7 @@ const config = { }, }, usedExports: 'global', - minimizer: [new CssMinimizerPlugin()], + minimizer: [ '...', new CssMinimizerPlugin()], }, resolve: { modules: [APP_DIR, 'node_modules', ROOT_DIR], From 75eda0f6e354678163e8e71ca05dba05c301d00b Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 22 Oct 2021 22:31:12 -0600 Subject: [PATCH 2/4] undoing accidental commit inclusion --- docker/docker-frontend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-frontend.sh b/docker/docker-frontend.sh index 00cfb906c3751..4c0d01e079359 100755 --- a/docker/docker-frontend.sh +++ b/docker/docker-frontend.sh @@ -23,4 +23,4 @@ npm install -f --no-optional --global webpack webpack-cli npm install -f --no-optional echo "Running frontend" -# npm run dev +npm run dev From cf9ce04e983696506556f766f3b494adca5734fe Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 22 Oct 2021 22:32:06 -0600 Subject: [PATCH 3/4] prettier :sparkles: --- superset-frontend/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index b28ac9d1fc126..84aee6e905485 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -274,7 +274,7 @@ const config = { }, }, usedExports: 'global', - minimizer: [ '...', new CssMinimizerPlugin()], + minimizer: ['...', new CssMinimizerPlugin()], }, resolve: { modules: [APP_DIR, 'node_modules', ROOT_DIR], From 7a2ac04ec691248cfe243161d2266cb6e0197a5e Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Mon, 25 Oct 2021 09:07:59 -0600 Subject: [PATCH 4/4] moving the dots. --- superset-frontend/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index 84aee6e905485..62cde828581f2 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -274,7 +274,7 @@ const config = { }, }, usedExports: 'global', - minimizer: ['...', new CssMinimizerPlugin()], + minimizer: [new CssMinimizerPlugin(), '...'], }, resolve: { modules: [APP_DIR, 'node_modules', ROOT_DIR],