rollup-starter-lib icon indicating copy to clipboard operation
rollup-starter-lib copied to clipboard

How to use with uglify or other minifier?

Open verlok opened this issue 6 years ago • 1 comments

Hey, this is a fantastic starter kit for building a lib.

What if I want to serve the cjs, umd, and esm version both unminified and minified? For example:

  • mylib.cjs.js
  • mylib.cjs.min.js
  • mylib.esm.js
  • mylib.esm.min.js
  • mylib.umd.js
  • mylib.umd.min.js

How do I obtain this?

Thanks

verlok avatar Feb 20 '19 22:02 verlok

Minifing would be great to add to this demo!

tomByrer avatar Jul 24 '19 17:07 tomByrer