Skip to content

Commit f50bb03

Browse files
author
Guillaume Chau
committed
fix(build): don't remove comments, closes #13
1 parent 71e429a commit f50bb03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/webpack.js

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ exports.getWebpackConfig = ({ target }) => {
2323

2424
// HTML
2525
webpackConfig.plugin('html-filter').use(HtmlFilterPlugin)
26+
if (isProd) {
27+
webpackConfig.plugin('html').tap(args => {
28+
args[0].minify.removeComments = false
29+
return args
30+
})
31+
}
2632

2733
webpackConfig = service.resolveWebpackConfig(webpackConfig)
2834

0 commit comments

Comments
 (0)