Insert just defer, not defer=defer
alexander-xyz opened this issue · 1 comments
alexander-xyz commented
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).
alexander-akait commented
You can enable minification mode and it will compress boolean attributes https://github.com/jantimon/html-webpack-plugin#minification