Created
May 31, 2018 05:52
-
-
Save jsartisan/a1c4b6a3640ebf9cdbd49aaa37686872 to your computer and use it in GitHub Desktop.
Minifying HTML
This file contains hidden or 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
// .. | |
const config = { | |
// ... | |
plugins: [ | |
new HtmlWebpackPlugin({ | |
template: 'src/index.html', | |
minify: { | |
collapseWhitespace: isDevelopment === false, | |
collapseInlineTagWhitespace: isDevelopment === false, | |
removeComments: isDevelopment === false, | |
removeRedundantAttributes: isDevelopment === false, | |
}, | |
}), | |
// ... | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment