HMR_TEMPLATES + Tailwind problem #29096
Labels
area: @angular/build
devkit/build-angular:dev-server
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
While it seems from the CLI output that the styles.css is being generated (see below) upon making changes to tailwind classes, the dev server does not seem to announce these HMR stylesheet changes or even serve the new stylesheet even after the client refreshes their page manually. Only way to "re-sync" the styles is to make changes to the model.
The behaviour I would expect would be both component and style HMR are triggered or in the opposite order if that makes the changes smoothly apply.
Minimal Reproduction
ng new project
follow install steps for https://tailwindcss.com/docs/guides/angular
NG_HMR_TEMPLATES=1 ng serve
add tailwind class(es) to an element, save
should see
Component update sent to client(s)
Open app page
Dev Tools | Elements
, should see new tailwind class(es) applied to element.Added Tailwind class(es) (unless another element was already using those classes) won't be in
styles.css
- so doesn't apply them.Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: