Skip to content

Commit

Permalink
fix: Update HtmlWebpackPlugin to use valid HTML5 script tags (#45)
Browse files Browse the repository at this point in the history
Set `scriptLoading: 'blocking'` in HtmlWebpackPlugin to remove `type="defer"` from inline script tags, ensuring compliance with HTML5 standards.
  • Loading branch information
warnyul authored Nov 28, 2024
1 parent d4cc5c4 commit 070e7f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = {
}),
new HtmlWebpackPlugin({
alwaysWriteToDisk: true,
scriptLoading: 'blocking',
template: htmlWebpackPluginTemplateCustomizer({
templatePath: 'src/views/index.ejs',
templateEjsLoaderOption: {
Expand Down

0 comments on commit 070e7f0

Please sign in to comment.