coderaiser / minify

Minifier of js, css, html and img
https://coderaiser.github.io/minify
MIT License
228 stars 29 forks source link

No way to pass arguments to uglify-js #39

Closed matutter closed 8 years ago

matutter commented 8 years ago

I want to pass arguments to uglify and I can't find a way to do it

var uglify_opts = { compress: { dead_code: true } }
minify('file.js', uglify_opts, (e, data) => {
    //... do stuff
}) 

And I'm looking through the source, i don't think they even get passed?

coderaiser commented 8 years ago

Actually they get passed. Feel free to make pull request with ability of passing arguments because there is no way to do it right now :).

coderaiser commented 8 years ago

Closed due to long time of inactivity.