From adbd5af8d125a4c67f9538738ab2f124b388593a Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 13 Sep 2025 10:17:00 +0000 Subject: [PATCH] Fix webpack --- tools/watch.sh | 9 +++++++-- webpack.config.js | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/watch.sh b/tools/watch.sh index 5e8defa49c..8c63d44b59 100644 --- a/tools/watch.sh +++ b/tools/watch.sh @@ -1,8 +1,13 @@ #!/bin/bash set -euo pipefail -make --no-print-directory watch-frontend & -make --no-print-directory watch-backend & +make --no-print-directory watch-frontend | tee >( + awk -v pattern="webpack" ' + $0 ~ pattern { + system("make --no-print-directory watch-backend &") + } + ' +) & trap 'kill $(jobs -p)' EXIT wait diff --git a/webpack.config.js b/webpack.config.js index 8f9949d7b1..90f8daea32 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -157,6 +157,7 @@ export default { minify: true, css: true, legalComments: 'none', + exclude: [new RegExp(`css\\/(${Object.keys(themes).join('|')})\\.css$`)], }), ], splitChunks: {