Skip to content

Update html-minifier #20

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

Merged
merged 1 commit into from
Apr 15, 2015
Merged

Update html-minifier #20

merged 1 commit into from
Apr 15, 2015

Conversation

frank-weindel
Copy link

html-minifier has undergone a number of enhancements since 0.5. This PR simply updates the version to ^0.7.2 and fixes a test that failed with the new version. I've tested this patched version of html-loader with a large webpack project and things are good.

My main motivation for submitting this PR is one of the enhancements in the later versions of the module. html-minifier now supports properly handling <svg> elements and knows not to remove trailing slashes from singleton elements within SVGs. SVGs included via html-loader are a big part of my team's webpack project and were showing some major issues when minification was turned on.

Thanks!

sokra added a commit that referenced this pull request Apr 15, 2015
@sokra sokra merged commit ab980b7 into webpack-contrib:master Apr 15, 2015
@sokra
Copy link
Member

sokra commented Apr 15, 2015

Thanks

SVGs included via html-loader are a big part of my team's webpack project and were showing some major issues when minification was turned on.

You propably want to add a testcase for svg handling to the html-loader, so we don't break in anytime soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants