From 8553cf3629ad039e638a79a0038e7c86125ecf3d Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 16 Feb 2021 00:12:28 -0800 Subject: [PATCH] Optimize bundle. --- packages/webapp/package.json | 2 +- packages/webapp/webpack.prod.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/webapp/package.json b/packages/webapp/package.json index 39dc841d..75ab9eec 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -50,7 +50,7 @@ "@material-ui/lab": "^4.0.0-alpha.57", "@reduxjs/toolkit": "^1.5.0", "axios": "^0.14.0", - "moment": "^2.29.1", + "moment-mini": "^2.29.1", "react": "^17.0.0", "react-dom": "^17.0.0", "react-google-recaptcha": "^2.1.0", diff --git a/packages/webapp/webpack.prod.js b/packages/webapp/webpack.prod.js index 198317e7..55854d95 100644 --- a/packages/webapp/webpack.prod.js +++ b/packages/webapp/webpack.prod.js @@ -6,5 +6,6 @@ module.exports = merge(common, { devtool: 'source-map', optimization: { minimize: true, + usedExports: true }, });