config-overrides.js 286 B

12345678910111213
  1. const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  2. module.exports = function override(config, env) {
  3. if (!config.plugins) {
  4. config.plugins = [];
  5. }
  6. config.plugins.push(
  7. new BundleAnalyzerPlugin()
  8. );
  9. return config;
  10. }