From 56c7225ae4b29eb43415c6d214088b0f0b64edf7 Mon Sep 17 00:00:00 2001 From: "YUKI \"Piro\" Hiroshi" Date: Mon, 30 Sep 2024 18:51:59 +0900 Subject: [PATCH] Load scripts by webpack completely --- src/web/app.html | 1 - src/web/dialog.html | 1 - webpack.config.js | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/web/app.html b/src/web/app.html index 67406a8..358d943 100644 --- a/src/web/app.html +++ b/src/web/app.html @@ -4,7 +4,6 @@ No title - blank diff --git a/src/web/dialog.html b/src/web/dialog.html index 22e731e..d96318d 100644 --- a/src/web/dialog.html +++ b/src/web/dialog.html @@ -6,7 +6,6 @@ - diff --git a/webpack.config.js b/webpack.config.js index 99f88ff..dfb910d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,7 +52,7 @@ module.exports = async (env, options) => { new HtmlWebpackPlugin({ filename: "app.html", template: "./src/web/app.html", - chunks: ["polyfill"], + chunks: ["polyfill", "app"], }), new CopyWebpackPlugin({ patterns: [ @@ -80,7 +80,7 @@ module.exports = async (env, options) => { new HtmlWebpackPlugin({ filename: "dialog.html", template: "./src/web/dialog.html", - chunks: ["polyfill"], + chunks: ["polyfill", "dialog"], }), ], devServer: {