chore: add watchOptions to webpack configuration for improved file watching performance
This commit is contained in:
@@ -383,6 +383,13 @@ export default {
|
|||||||
}),
|
}),
|
||||||
new InlineCssPlugin(),
|
new InlineCssPlugin(),
|
||||||
].filter(Boolean),
|
].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: {
|
devServer: {
|
||||||
allowedHosts: 'all',
|
allowedHosts: 'all',
|
||||||
compress: true,
|
compress: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user