Skip to content

Commit 7130beb

Browse files
update html bundling config
1 parent 748ce7e commit 7130beb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ module.exports = {
3939
new HtmlWebpackPlugin({
4040
template: './public/index.html',
4141
filename: 'index.html',
42+
inject: 'body',
43+
scriptLoading: 'defer',
4244
}),
4345
new CopyWebpackPlugin({
4446
patterns: [{ from: 'public/*.{ico,svg,json,txt}', to: '[name][ext]' }],

0 commit comments

Comments
 (0)