message: Allow chunk visualizer with just an env var
diff: @@ -16,7 +16,7 @@ const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
  const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
  const csp = require('./content-security-policy');
  -// const Visualizer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  +const Visualizer = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
  const NotifyPlugin = require('notify-webpack-plugin');
  @@ -327,9 +327,6 @@ module.exports = (env) => {
  shorthands: true,
  flattening: true
  })
  -
  - // Enable if you want to debug the size of the chunks
  - // new Visualizer(),
  ],
  node: {
  @@ -339,6 +336,11 @@ module.exports = (env) => {
  }
  };
  + // Enable if you want to debug the size of the chunks
  + if (process.env.WEBPACK_VISUALIZE) {
  + config.plugins.push(new Visualizer());
  + }
  +
  if (isDev) {
  config.plugins.push(
  new WebpackNotifierPlugin({
  