From 0a7f7e653ba68305db51542b8b3059ed0ec6458b Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Thu, 31 Jul 2025 08:30:10 +0200 Subject: [PATCH] chore: add watchOptions to webpack configuration for improved file watching performance --- webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 452b35f..d6941f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -383,6 +383,13 @@ export default { }), new InlineCssPlugin(), ].filter(Boolean), + watchOptions: { + // Only rebuild when file content actually changes, not just timestamps + aggregateTimeout: 300, // Wait 300ms after a change before rebuilding + poll: false, // Use native file watching instead of polling + ignored: /node_modules/, // Ignore node_modules for performance + followSymlinks: false, // Don't follow symlinks + }, devServer: { allowedHosts: 'all', compress: true,