-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
-
False
-
-
Production build should be minified. It appears it is not.
For example, after running `yarn build`:
asset bundle.exposed-./RootApp.ae34ca6cef837da8.js 7.79 MiB [emitted]after
After adding TerserPlugin:
bundle.exposed-./RootApp.de66ebf80e555634.js 3.36 MiB [emitted]
It cuts the source bundle by more than half. The only changes here were adding to `webpack.config.js`:
const TerserPlugin = require("terser-webpack-plugin"); ... return { ... // other webpack options optimization: { minimize: true, minimizer: [new TerserPlugin()] }, }
Investigate if that is enough or we need to specify more options.