File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,13 @@ async function build() {
367
367
let input = args [ '--input' ]
368
368
let output = args [ '--output' ]
369
369
let shouldWatch = args [ '--watch' ]
370
+ let shouldCoalesceWriteEvents = process . platform === 'win32'
370
371
let includePostCss = args [ '--postcss' ]
371
372
373
+ // Polling interval in milliseconds
374
+ // Used only when coalescing add/change events on Windows
375
+ let pollInterval = 10
376
+
372
377
// TODO: Deprecate this in future versions
373
378
if ( ! input && args [ '_' ] [ 1 ] ) {
374
379
console . error ( '[deprecation] Running tailwindcss without -i, please provide an input file.' )
@@ -748,10 +753,10 @@ async function build() {
748
753
watcher = chokidar . watch ( [ ...contextDependencies , ...extractFileGlobs ( config ) ] , {
749
754
ignoreInitial : true ,
750
755
awaitWriteFinish :
751
- process . platform === 'win32'
756
+ shouldCoalesceWriteEvents
752
757
? {
753
758
stabilityThreshold : 50 ,
754
- pollInterval : 10 ,
759
+ pollInterval : pollInterval ,
755
760
}
756
761
: false ,
757
762
} )
You can’t perform that action at this time.
0 commit comments