Skip to content

Commit

Permalink
Webpack-dev-server - watch translation relates files
Browse files Browse the repository at this point in the history
The web browser page is automatically reloaded when translations
or the language index file (manifest.json) is updated.
  • Loading branch information
lslezak committed Nov 2, 2023
1 parent 6e44336 commit 07e8952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 07e8952

Please sign in to comment.