Created
April 22, 2020 19:00
-
-
Save hindmost/06b54c4624f4f2362ea901177f2b6f2e to your computer and use it in GitHub Desktop.
cra-browserext-boilerplate: webpack.config.js - html-webpack-plugin - new
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
new HtmlWebpackPlugin({ | |
inject: true, | |
template: paths.appHtml, | |
filename: 'popup.html', | |
chunks: ['popup'], | |
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