Collection of rollup plugins
- utils - utilities for other plugins, including options and multi-output handling.
- plugin-clean - lightweight, reliable cleaning of the build directory.
- plugin-copy - files copying with minimalistic config, watch mode and glob support.
- plugin-html - asset injection into HTML files with optional minification, beautification, and more.
- plugin-serve - Koa-based dev-server with an extensible API.
- plugin-binify - makes an output file executable with shebang and file attributes.
- plugin-externals - declares external dependencies with reasonable defaults and customizable logic.
- plugin-angularjs-template-cache - builds AngularJS template cache.
- plugin-exec - exec some code when the bundle you are building is finished.
- @rollup/plugin-node-resolve - if you have npm packages installed you probably need this as a first plugin
- @rollup/plugin-commonjs - and if you have at least one file in legacy commonjs format then you need this one
- @rollup/plugin-json - allows to import JSON files, do not forget to use
resolveJsonModule
intsconfig.json
if you are using Typescript - @rollup/plugin-terser - minifies output js files, must-have for production browser builds
- rollup-plugin-typescript2 - best to use with Typescript, slightly less effort to use comparing to official @rollup/plugin-typescript, faster incremental builds
- rollup-plugin-preprocess - despite being version 0.0.4 and not being updated for many years flawlessly preprocess files using preprocess syntax, relatively safe compared to @rollup/plugin-replace which is good mainly in case you don't have access to the source code of a 3-d party library but still want to replace some expression there
- rollup-plugin-styles - if you want to bundle CSS/SCSS/SASS/LESS/Stylus and want to use PostCSS plugins. I recommend using it with postcss-lightningcss
- rollup-plugin-livereload - simple livereload, I recommend always having a delay in config
- rollup-plugin-glob-import if you want to import files using a glob pattern. I would say it is antipattern and vendor-lock in most cases but sometimes it is extremely useful, especially in migrating old code bases and building component showcases.
- rollup-plugin-html - allows importing html files as strings in that rare cases when you need it. Consider using wildcard module declarations if you are using Typescript.
If you want to author a library and are happy with a relatively simple build give a chance to pkgbld.