feat(bundle): Add bundle visualisation tool
This commit is contained in:
@@ -2,6 +2,7 @@ var webpack = require('webpack');
|
||||
var path = require('path');
|
||||
var ManifestPlugin = require('webpack-manifest-plugin');
|
||||
var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin');
|
||||
const Visualizer = require('webpack-visualizer-plugin');
|
||||
|
||||
var __DEV__ = process.env.NODE_ENV !== 'production';
|
||||
|
||||
@@ -60,7 +61,9 @@ module.exports = {
|
||||
'debug/src/browser'
|
||||
),
|
||||
new webpack.optimize.DedupePlugin(),
|
||||
new webpack.optimize.OccurenceOrderPlugin(true)
|
||||
new webpack.optimize.OccurenceOrderPlugin(true),
|
||||
// this will output a .html file in output.path
|
||||
new Visualizer({ filename: 'webpack-bundle-stats.html' })
|
||||
]
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user