Skip to content

Conversation

@frank-weindel
Copy link
Contributor

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: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