|
@@ -7,6 +7,7 @@ const path = require('path')
|
|
const baseWebpackConfig = require('./webpack.base.conf')
|
|
const baseWebpackConfig = require('./webpack.base.conf')
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
+const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
|
|
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
|
|
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
|
|
const portfinder = require('portfinder')
|
|
const portfinder = require('portfinder')
|
|
|
|
|
|
@@ -65,7 +66,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|
to: config.dev.assetsSubDirectory,
|
|
to: config.dev.assetsSubDirectory,
|
|
ignore: ['.*']
|
|
ignore: ['.*']
|
|
}
|
|
}
|
|
- ])
|
|
|
|
|
|
+ ]),
|
|
|
|
+ new BundleAnalyzerPlugin()
|
|
]
|
|
]
|
|
})
|
|
})
|
|
|
|
|