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,