rollup-plugin-terser
Less
rollup-plugin-terser | Less | |
---|---|---|
2 | 2 | |
615 | 121 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 7 years ago | |
JavaScript | Ruby | |
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:
Less
-
CSS Deep
mrkrupski/LESS-Dynamic-Stylesheet - A set of useful mixins for LESS, the CSS pre-processor: http://lesscss.org
-
Setting Up a JavaScript Build Process using Rollup
Now that we have addressed our scripts, we can focus on our styles. In this setup, we will look at the CSS preprocessor Less which lets us write CSS simpler, use variables and mixins. We can add it to the project with the following command:
What are some alternatives?
browserslist - 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
rollup-plugin-postcss - Seamless integration between Rollup and PostCSS.
Less Rails - :-1: :train: Less.js For Rails
autoprefixer - Parse CSS and add vendor prefixes to rules by Can I Use
Quiet Assets
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
Sass - Sass makes CSS fun!
awesome - ⚡️ Delightful Rollup Plugins, Packages, and Resources
Emoji - A gem. For Emoji. For everyone. ❤
rollup-library-starter - Starter template for building JavaScript libraries using Rollup
Gutenberg - Modern framework to print the web correctly.