-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide config as object instead of string #1
Comments
This actually sounds quite good. I guess we could have the |
I've added this, so now you can do something like: usemin('src/index.html', 'dist', {
output: 'dist/index.html',
htmlmin: true,
removeLivereload: true,
config: {
uglifyjs: {
},
cleancss: {
},
htmlminifier: {
removeComments: false,
collapseWhitespace: false,
removeEmptyAttributes: false,
removeScriptTypeAttributes: false,
removeStyleLinkTypeAttributes: false,
minifyJS: false,
minifyCSS: false,
}
}
}); Do you mind testing this as well before I publish? Thanks! |
Looks fine to me. Does what I was hoping it would. Thanks! |
Thanks for testing! v0.5.0 has been published. |
How do you feel about providing the UglifyJS, CleanCSS and HTML minifier config options directly as an object to usemin() instead of as a string to another file? I don't mean as a replacement but as another way.
The text was updated successfully, but these errors were encountered: