From 8de957936c69bff1fd3b1b8b7fc5431ff0f885a6 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 17 Feb 2021 11:16:39 -0800 Subject: [PATCH] Reduce bundle size Fix export --- packages/webapp/src/images/{ => aux}/logo-old.png | Bin .../webapp/src/images/{ => aux}/logo-text-black.svg | 0 packages/webapp/src/images/{ => aux}/logo-text.svg | 0 .../webapp/src/images/{ => aux}/pwrdby-black.svg | 0 packages/webapp/src/images/aux/pwrdby-white.svg | 11 +++++++++++ packages/webapp/src/images/pwrdby-white.svg | 10 ++-------- packages/webapp/webpack.prod.js | 4 +++- 7 files changed, 16 insertions(+), 9 deletions(-) rename packages/webapp/src/images/{ => aux}/logo-old.png (100%) rename packages/webapp/src/images/{ => aux}/logo-text-black.svg (100%) rename packages/webapp/src/images/{ => aux}/logo-text.svg (100%) rename packages/webapp/src/images/{ => aux}/pwrdby-black.svg (100%) create mode 100644 packages/webapp/src/images/aux/pwrdby-white.svg diff --git a/packages/webapp/src/images/logo-old.png b/packages/webapp/src/images/aux/logo-old.png similarity index 100% rename from packages/webapp/src/images/logo-old.png rename to packages/webapp/src/images/aux/logo-old.png diff --git a/packages/webapp/src/images/logo-text-black.svg b/packages/webapp/src/images/aux/logo-text-black.svg similarity index 100% rename from packages/webapp/src/images/logo-text-black.svg rename to packages/webapp/src/images/aux/logo-text-black.svg diff --git a/packages/webapp/src/images/logo-text.svg b/packages/webapp/src/images/aux/logo-text.svg similarity index 100% rename from packages/webapp/src/images/logo-text.svg rename to packages/webapp/src/images/aux/logo-text.svg diff --git a/packages/webapp/src/images/pwrdby-black.svg b/packages/webapp/src/images/aux/pwrdby-black.svg similarity index 100% rename from packages/webapp/src/images/pwrdby-black.svg rename to packages/webapp/src/images/aux/pwrdby-black.svg diff --git a/packages/webapp/src/images/aux/pwrdby-white.svg b/packages/webapp/src/images/aux/pwrdby-white.svg new file mode 100644 index 00000000..d99261da --- /dev/null +++ b/packages/webapp/src/images/aux/pwrdby-white.svg @@ -0,0 +1,11 @@ + + + + + + + + Powered by + + + \ No newline at end of file diff --git a/packages/webapp/src/images/pwrdby-white.svg b/packages/webapp/src/images/pwrdby-white.svg index d99261da..cf8d9c3a 100644 --- a/packages/webapp/src/images/pwrdby-white.svg +++ b/packages/webapp/src/images/pwrdby-white.svg @@ -1,11 +1,5 @@ - - - - - + - Powered by - - + \ No newline at end of file diff --git a/packages/webapp/webpack.prod.js b/packages/webapp/webpack.prod.js index d4c14c77..aae81425 100644 --- a/packages/webapp/webpack.prod.js +++ b/packages/webapp/webpack.prod.js @@ -11,7 +11,9 @@ module.exports = merge(common, { minimize: true }, plugins: [ - new CompressionPlugin(), + new CompressionPlugin({ + test: /\.js(\?.*)?$/i + }), new HtmlWebpackPlugin({ template: path.join(__dirname, 'public/index.html'), templateParameters: {