init commit
This commit is contained in:
13
webpack.analyzer.js
Normal file
13
webpack.analyzer.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const path = require('path');
|
||||
const baseConfig = require('./webpack.base.js');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
|
||||
const config = Object.assign({}, baseConfig, {
|
||||
plugins: [
|
||||
...baseConfig.plugins,
|
||||
new BundleAnalyzerPlugin()
|
||||
]
|
||||
});
|
||||
config.output.path = path.resolve('./analyzer');
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user