Skip to content

Commit

Permalink
fix: await write finish when watching files
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Nov 7, 2023
1 parent 31bd40b commit d82c1d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/serve.js
Expand Up @@ -183,7 +183,13 @@ const serve = async (env = 'local', config = {}) => {
},
tunnel: false,
ui: {port: 3001},
logFileChanges: false
logFileChanges: false,
watchOptions: {
awaitWriteFinish: {
stabilityThreshold: 150,
pollInterval: 25
}
}
},
get(config, 'build.browsersync', {})
), () => {})
Expand Down

0 comments on commit d82c1d2

Please sign in to comment.