aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 7392c58d3..000699aa5 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -5,7 +5,6 @@ const helpers = require('./helpers')
5 */ 5 */
6 6
7const AssetsPlugin = require('assets-webpack-plugin') 7const AssetsPlugin = require('assets-webpack-plugin')
8const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
9const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin') 8const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin')
10const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin') 9const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin')
11const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin 10const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin
@@ -297,30 +296,6 @@ module.exports = function (options) {
297 new ngcWebpack.NgcWebpackPlugin({ 296 new ngcWebpack.NgcWebpackPlugin({
298 disabled: !AOT, 297 disabled: !AOT,
299 tsConfig: helpers.root('tsconfig.webpack.json') 298 tsConfig: helpers.root('tsconfig.webpack.json')
300 }),
301
302 new BundleAnalyzerPlugin({
303 // Can be `server`, `static` or `disabled`.
304 // In `server` mode analyzer will start HTTP server to show bundle report.
305 // In `static` mode single HTML file with bundle report will be generated.
306 // In `disabled` mode you can use this plugin to just generate Webpack Stats JSON file by setting `generateStatsFile` to `true`.
307 analyzerMode: 'static',
308 // Path to bundle report file that will be generated in `static` mode.
309 // Relative to bundles output directory.
310 reportFilename: 'report.html',
311 // Automatically open report in default browser
312 openAnalyzer: false,
313 // If `true`, Webpack Stats JSON file will be generated in bundles output directory
314 generateStatsFile: true,
315 // Name of Webpack Stats JSON file that will be generated if `generateStatsFile` is `true`.
316 // Relative to bundles output directory.
317 statsFilename: 'stats.json',
318 // Options for `stats.toJson()` method.
319 // For example you can exclude sources of your modules from stats file with `source: false` option.
320 // See more options here: https://github.com/webpack/webpack/blob/webpack-1/lib/Stats.js#L21
321 statsOptions: null,
322 // Log level. Can be 'info', 'warn', 'error' or 'silent'.
323 logLevel: 'info'
324 }) 299 })
325 ], 300 ],
326 301