Created
April 22, 2020 18:58
-
-
Save hindmost/6377bf5bbadaff168693bf59a5f1cf2d to your computer and use it in GitHub Desktop.
cra-browserext-boilerplate: webpack.config.js - html-webpack-plugin - origin
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
... | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
... | |
plugins: [ | |
new HtmlWebpackPlugin({ | |
inject: true, | |
template: paths.appHtml, | |
minify: { | |
removeComments: true, | |
collapseWhitespace: true, | |
removeRedundantAttributes: true, | |
useShortDoctype: true, | |
removeEmptyAttributes: true, | |
removeStyleLinkTypeAttributes: true, | |
keepClosingSlash: true, | |
minifyJS: true, | |
minifyCSS: true, | |
minifyURLs: true, | |
}, | |
}), | |
... | |
] | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment