Closed Sotorin closed 7 years ago
This is likely due to all of the optional blocks within index.ejs. When options aren't used/skipped you can get some significant whitespace. Also, it looks like all white space in the template is preserved even if the line just contains ejs syntax. It may be interesting to see if the file could be compressed at the end of processing.
You can add this inside your config to remove them:
new HtmlWebpackPlugin({
minify: {
collapseWhitespace: true,
preserveLineBreaks: true,
},
...
})
@oomathias Thanks for the HtmlWebpackPlugin
option comment. Closing.
Why is there so much white space in resulting HTML?