mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(build): add script to analyze webpack bundle [EE-2132] (#6259)
* chore(build): add script to analyze webpack bundle * chore(build): use single dep (lodash,moment)
This commit is contained in:
parent
5a3687a564
commit
d9db789511
5 changed files with 88 additions and 13 deletions
12
webpack/webpack.analyze.js
Normal file
12
webpack/webpack.analyze.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const smp = new SpeedMeasurePlugin();
|
||||
const merge = require('webpack-merge');
|
||||
const webpackConfig = require('./webpack.production.js');
|
||||
// const webpackConfig = require('./webpack.develop.js');
|
||||
|
||||
module.exports = smp.wrap(
|
||||
merge(webpackConfig, {
|
||||
plugins: [new BundleAnalyzerPlugin()],
|
||||
})
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue