chore: add webpack-stats-viewer-plugin

pull/56/head
moonrailgun 3 years ago
parent 60f16d963e
commit 8be2c2dedb

@ -17,6 +17,7 @@ import WorkboxPlugin from 'workbox-webpack-plugin';
import { workboxPluginDetailPattern, workboxPluginEntryPattern } from './utils';
import dayjs from 'dayjs';
import { BundleStatsWebpackPlugin } from 'bundle-stats-webpack-plugin';
import { WebpackStatsViewerPlugin } from 'webpack-stats-viewer-plugin';
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config();
@ -176,7 +177,10 @@ if (ANALYSIS) {
analyzerMode: 'static',
openAnalyzer: true,
}) as any,
new BundleStatsWebpackPlugin()
new BundleStatsWebpackPlugin(),
new WebpackStatsViewerPlugin({
open: true,
})
);
}

@ -127,6 +127,7 @@
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.3.1",
"webpack-stats-viewer-plugin": "1.0.1",
"webpackbar": "^5.0.2",
"workbox-webpack-plugin": "^6.5.1"
}

@ -358,6 +358,7 @@ importers:
webpack-bundle-analyzer: ^4.5.0
webpack-cli: ^4.9.1
webpack-dev-server: ^4.3.1
webpack-stats-viewer-plugin: 1.0.1
webpackbar: ^5.0.2
workbox-webpack-plugin: ^6.5.1
yup: ^0.32.9
@ -464,6 +465,7 @@ importers:
webpack-bundle-analyzer: 4.6.1
webpack-cli: 4.10.0_o3j4juldl4l55zeehmsnbfmici
webpack-dev-server: 4.10.0_77l47gmqkrqiei5z7sbwz5iaj4
webpack-stats-viewer-plugin: 1.0.1_webpack@5.73.0
webpackbar: 5.0.2_webpack@5.73.0
workbox-webpack-plugin: 6.5.4_webpack@5.73.0
@ -25155,6 +25157,19 @@ packages:
resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
engines: {node: '>=10.13.0'}
/webpack-stats-viewer-plugin/1.0.1_webpack@5.73.0:
resolution: {integrity: sha512-FoiKlyNud+VXXtoKePso9FnZoIwFG1B4LmP4lupJj6Lj5bHgZJu7WpeWMa9qggdvVv3L+OoQTAnnGi6hvEabug==}
engines: {node: '>= 14.0'}
peerDependencies:
webpack: ^4.0.0 || ^5.0.0
dependencies:
chalk: 4.1.2
fs-extra: 10.1.0
lodash: 4.17.21
opener: 1.5.2
webpack: 5.73.0_webpack-cli@4.10.0
dev: true
/webpack-virtual-modules/0.2.2:
resolution: {integrity: sha512-kDUmfm3BZrei0y+1NTHJInejzxfhtU8eDj2M7OKb2IWrPFAeO1SOH2KuQ68MSZu9IGEHcxbkKKR1v18FrUSOmA==}
dependencies:

Loading…
Cancel
Save