File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
12
12
- Fix watching of files on Linux when renames are involved ([ #9796 ] ( https://github.com/tailwindlabs/tailwindcss/pull/9796 ) )
13
+ - Make sure errors are always displayed when watching for changes ([ #9810 ] ( https://github.com/tailwindlabs/tailwindcss/pull/9810 ) )
13
14
14
15
## [ 3.2.3] - 2022-11-09
15
16
Original file line number Diff line number Diff line change @@ -364,6 +364,23 @@ export async function createProcessor(args, cliConfigPath) {
364
364
console . error ( )
365
365
console . error ( 'Done in' , ( end - start ) / BigInt ( 1e6 ) + 'ms.' )
366
366
} )
367
+ . then (
368
+ ( ) => { } ,
369
+ ( err ) => {
370
+ // TODO: If an initial build fails we can't easily pick up any PostCSS dependencies
371
+ // that were collected before the error occurred
372
+ // The result is not stored on the error so we have to store it externally
373
+ // and pull the messages off of it here somehow
374
+
375
+ // This results in a less than ideal DX because the watcher will not pick up
376
+ // changes to imported CSS if one of them caused an error during the initial build
377
+ // If you fix it and then save the main CSS file so there's no error
378
+ // The watcher will start watching the imported CSS files and will be
379
+ // resilient to future errors.
380
+
381
+ console . error ( err )
382
+ }
383
+ )
367
384
}
368
385
369
386
/**
You can’t perform that action at this time.
0 commit comments