mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Add webpack script/config to analyze bundle size.
Execute `npm run analyze` to open a size map of the production build in the browser.
This commit is contained in:
parent
b9b344b8bb
commit
aae9865786
3 changed files with 60 additions and 2 deletions
11
config/webpack.bundle-analyzer.js
Normal file
11
config/webpack.bundle-analyzer.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
|
||||
.BundleAnalyzerPlugin;
|
||||
|
||||
const merge = require("webpack-merge");
|
||||
const prod = require("./webpack.prod.js");
|
||||
|
||||
const config = merge(prod, {
|
||||
plugins: [new BundleAnalyzerPlugin()]
|
||||
});
|
||||
|
||||
module.exports = config;
|
||||
Loading…
Add table
Add a link
Reference in a new issue