rollup-plugin-terser
rollup-library-starter
rollup-plugin-terser | rollup-library-starter | |
---|---|---|
2 | 1 | |
615 | 17 | |
- | - | |
0.0 | 4.4 | |
over 1 year ago | about 2 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-library-starter
-
Rollup Library Starter
// ./rollup.config.js // ... const outputOptions = { exports: 'named', preserveModules: true, banner: `/* * Rollup Library Starter * https://github.com/mryechkin/rollup-library-starter * (c) Mykhaylo Ryechkin (@mryechkin) */`, };
What are some alternatives?
browserslist - 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
rollup-plugin-analyzer - Mad metrics for your rollup bundles, know all the things
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
tsdx - Zero-config CLI for TypeScript package development
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:
awesome - ⚡️ Delightful Rollup Plugins, Packages, and Resources
plugins - 🍣 The one-stop shop for official Rollup plugins