diff options
Diffstat (limited to 'server/sonar-web/scripts/analyze.js')
-rw-r--r-- | server/sonar-web/scripts/analyze.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/scripts/analyze.js b/server/sonar-web/scripts/analyze.js index c41bedde127..b0c21ea1954 100644 --- a/server/sonar-web/scripts/analyze.js +++ b/server/sonar-web/scripts/analyze.js @@ -24,10 +24,11 @@ const webpack = require('webpack'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const getConfigs = require('../config/webpack.config'); -const configs = getConfigs({ production: true }); +const configs = getConfigs({ production: true, release: true }); const config = configs.find(config => config.name === 'modern'); +const analyzerPort = process.env.PORT || 8888; -config.plugins.push(new BundleAnalyzerPlugin()); +config.plugins.push(new BundleAnalyzerPlugin({ analyzerPort })); webpack(config, err => { if (err) { |