Home

Issue: 930

Webpack-bundle-analyzer in development mode

[issue link]

I found this code snippet in dist/nuxt.js

 // Webpack Bundle Analyzer
  if (!this.dev && this.options.build.analyze) {
    var options = {};
    if (__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(this.options.build.analyze) === 'object') {
      options = this.options.build.analyze;
    }
    config.plugins.push(new __WEBPACK_IMPORTED_MODULE_9_webpack_bundle_analyzer__["BundleAnalyzerPlugin"](options));
  }

Is there a reason why webpack-bundle-analyzer is prevented in dev mode?

This question is available on Nuxt.js community (#c799)