Skip to content
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

Passing true to minify does nothing #81

Merged
merged 1 commit into from Aug 15, 2015
Merged

Passing true to minify does nothing #81

merged 1 commit into from Aug 15, 2015

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Aug 14, 2015

All html-minifier options are false by default, so passing just true does nothing to the output

All `html-minifier` options are `false` by default, so passing just true does nothing to the output
// If `options.minify` is set to true use the default minify options
var minifyOptions = _.isObject(this.options.minify) ? this.options.minify : {};
html = minify(html, minifyOptions);
html = minify(html, this.options.minify);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK if this change is necessary, as it might break someone's stuff. Passing in an empty object if it was just true before did nothing to the output though, so I'm guessing people using the minify-option do pass an object

jantimon added a commit that referenced this pull request Aug 15, 2015
Passing true to minify does nothing
@jantimon jantimon merged commit f68b6e3 into jantimon:master Aug 15, 2015
@SimenB SimenB deleted the patch-1 branch August 15, 2015 12:05
@lock
Copy link

lock bot commented May 31, 2018

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants