jantimon/html-webpack-plugin

Insert just defer, not defer=defer

alexander-xyz opened this issue · 1 comments

Hi. I use this config
new HtmlWebpackPlugin({ inject: 'body', template: path.resolve(srcDir, 'empty.html'), filename: 'app.html', }),
but it's insert just attribute defer=defer for <script>. Better to insert just defer (not defer=defer).

You can enable minification mode and it will compress boolean attributes https://github.com/jantimon/html-webpack-plugin#minification