Created
July 25, 2016 11:27
-
-
Save stalniy/d55fc7990b4340c9d0ef55fd8838ed34 to your computer and use it in GitHub Desktop.
Configuration for webpack html loader which removes all white spaces between tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
root: resolve('src'), | |
minimize: true, | |
collapseWhitespace: true, | |
conservativeCollapse: false, | |
collapseInlineTagWhitespace: true, | |
removeAttributeQuotes: false, | |
caseSensitive: true, | |
customAttrSurround: [ | |
[/#/, /(?:)/], | |
[/\*/, /(?:)/], | |
[/\[?\(?/, /(?:)/], | |
], | |
customAttrAssign: [/\)?\]?=/], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment