From 07e895206b1c0466cb719eeeb178d1b9a333fc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Thu, 2 Nov 2023 08:32:43 +0100 Subject: [PATCH] Webpack-dev-server - watch translation relates files The web browser page is automatically reloaded when translations or the language index file (manifest.json) is updated. --- web/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/webpack.config.js b/web/webpack.config.js index 27e9ae2730..fa8713b99a 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -101,6 +101,8 @@ module.exports = { externals: { cockpit: "cockpit" }, devServer: { hot: true, + // additionally watch these files for changes + watchFiles: ["./src/manifest.json", "./po/*.po"], proxy: { // forward all cockpit connections to a real Cockpit instance "/cockpit": {