Remove lodash deps to reduce bundle size more

This commit is contained in:
Dane Everitt
2020-07-04 21:46:49 -07:00
parent 0403fa9517
commit cbea4078fb
8 changed files with 36 additions and 29 deletions

View File

@@ -73,7 +73,10 @@ module.exports = {
files: `${path.join(__dirname, '/resources/scripts')}/**/*.{ts,tsx}`,
},
}) : null,
process.env.ANALYZE_BUNDLE ? new BundleAnalyzerPlugin() : null
process.env.ANALYZE_BUNDLE ? new BundleAnalyzerPlugin({
analyzerHost: '0.0.0.0',
analyzerPort: 8081,
}) : null
].filter(p => p),
optimization: {
usedExports: true,