Static GitHub Issues

[930] Webpack-bundle-analyzer in development mode

prev: Is it possible to use Nuxt without SSR?
next: The page title is 'xxx-Nuxt.js'

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?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c799">#c799</a>)</em></sub></div>