13 lines
378 B
JavaScript
13 lines
378 B
JavaScript
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; |