• False
    • Hide

      None

      Show
      None
    • 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.

       

       

              Unassigned Unassigned
              jschuler_kafka_devexp Joachim Schuler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: