From 60e156c1a29f4814d2035f2db8e2c66cd7f43bc3 Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Sat, 24 Apr 2021 14:03:39 +0200
Subject: [PATCH] Generate entry html correctly with only the needed bundle

---
 webpack.config.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/webpack.config.js b/webpack.config.js
index 69cf2e6..c7b5b6a 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -11,8 +11,15 @@ module.exports = {
   plugins: [
     new HtmlWebpackPlugin({
       title: 'Aug[m]entile',
-      filename: 'augmentile-[name].html',
-      hash: true
+      filename: 'augmentile-widget.html',
+      hash: true,
+      chunks: ['widget']
+    }),
+    new HtmlWebpackPlugin({
+      title: 'Aug[m]entile',
+      filename: 'augmentile-browser.html',
+      hash: true,
+      chunks: ['browser']
     }),
     new SymlinkWebpackPlugin({
       origin: 'augmentile-browser.html',
-- 
GitLab