rollup-plugin-terser
rollup-plugin-analyzer
rollup-plugin-terser | rollup-plugin-analyzer | |
---|---|---|
2 | 1 | |
615 | 237 | |
- | - | |
0.0 | 4.1 | |
over 1 year ago | 10 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rollup-plugin-terser
-
Rollup Library Starter
This next one will help us reduce final bundle size by minifying the generated code. It's called rollup-plugin-terser and uses terser under the hood to minify the code.
-
Setting Up a JavaScript Build Process using Rollup
Generating a bundle that has many dependencies, from our code or third-party packages, will result in a large JavaScript file. To optimize the bundle it is useful to integrate Terser into our build process. What Terser does is it removes comments, shorten variables names, cut whitespaces and minify our code to make it the shortest possible. Again Terser can be integrated with Rollup using a plugin:
rollup-plugin-analyzer
-
Rollup Library Starter
Lastly, we have rollup-plugin-analyzer. This plugin will print out some useful info about our generated bundle upon sucessfull builds:
What are some alternatives?
browserslist - 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
rollup-library-starter - Starter template for building JavaScript libraries using Rollup
rollup-plugin-postcss - Seamless integration between Rollup and PostCSS.
terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+
autoprefixer - Parse CSS and add vendor prefixes to rules by Can I Use
awesome - ⚡️ Delightful Rollup Plugins, Packages, and Resources
Less - Leaner CSS, in your browser or Ruby (via less.js).
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
plugins - 🍣 The one-stop shop for official Rollup plugins
tsdx - Zero-config CLI for TypeScript package development