63
GitHub - GoogleChromeLabs/size-plugin: Track compressed Webpack asset sizes over...
source link: https://github.com/GoogleChromeLabs/size-plugin
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
size-plugin
Prints the gzipped sizes of your webpack assets and the changes since the last build.
Installation
Install size-plugin
as a development dependency using npm:
npm i -D size-plugin
Usage
Add an instance of the plugin to your webpack configuration:
// webpack.config.js + const SizePlugin = require('size-plugin'); module.exports = { plugins: [ + new SizePlugin() ] }
License
This is not an official Google product.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK