Add webpack bundle analyzer

This commit is contained in:
Thomas Nordquist
2019-01-19 19:21:26 +01:00
parent 6f48f0bd8e
commit 1839b551c0
3 changed files with 97 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
var LiveReloadPlugin = require('webpack-livereload-plugin');
const LiveReloadPlugin = require('webpack-livereload-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = {
entry: {
@@ -49,7 +50,8 @@ module.exports = {
},
plugins: [
new LiveReloadPlugin({})
new LiveReloadPlugin({}),
// new BundleAnalyzerPlugin(),
],
// When importing a module whose path matches one of the following, just