TrySound / rollup-plugin-uglify

Rollup plugin to minify generated bundle
MIT License
260 stars 42 forks source link

how to set option for double rollup.output #66

Closed JackShell2020 closed 5 years ago

JackShell2020 commented 5 years ago

for example output: [{ file: 'index.js' },{ file: 'index.es.js' }] how can i set options of uglify, to make tow output files. one file use uglify, and another don't use

and ps, when i using uglify, sometimes, running 'rollup -c', it will no response

TrySound commented 5 years ago

There is a solution in terser plugin. I recommend to use it instead of uglify. https://github.com/TrySound/rollup-plugin-terser#includeexclude

JackShell2020 commented 5 years ago

great. thanks