chore: add watchOptions to webpack configuration for improved file watching performance

This commit is contained in:
sebseb7
2025-07-31 08:30:10 +02:00
parent 42fa46f2f9
commit 0a7f7e653b

View File

@@ -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,