You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allow users to pass analyzerMode: 'json' to the plugin
configure the json export correctly to match the existing HTML export logic
Non-Goals
Background
As a frontend engineer working with next we obsess over every byte sent to the user.
I would like the ability to easily generate metrics from form the output of webpack-bundle-analyzer so that we can closely monitor our bundle size on a per-commit/per-pr basis.
The generated HTML is a great visual indicator but I would like something machine readable so that we can be very strict about what we ship.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
analyzerMode: 'json'
to the pluginNon-Goals
Background
As a frontend engineer working with next we obsess over every byte sent to the user.
I would like the ability to easily generate metrics from form the output of webpack-bundle-analyzer so that we can closely monitor our bundle size on a per-commit/per-pr basis.
The generated HTML is a great visual indicator but I would like something machine readable so that we can be very strict about what we ship.
Proposal
#48895
I would like to expand
@next/bundle-analyzer
to accept all options exposed bywebpack-bundle-analyzer
Beta Was this translation helpful? Give feedback.
All reactions