Angular 13 Tailwind 3 jit not updating.
See original GitHub issueWhat version of Tailwind CSS are you using?
v3.0.8
What build tool (or framework if it abstracts the build tool) are you using?
Angular 13.1.2
What version of Node.js are you using?
16.13.1
What browser are you using?
Chrome
What operating system are you using?
Windows 10
Describe your issue
- SImply create new angular project and add tailwind, tailwind configuration.
- Change app.component.html with
<div class="h-[100px] w-[100px] bg-red-100"></div>
- Run first time with ng serve.(It works fine).
- Stop dev server
- Change app.component.html with
<div class="h-[200px] w-[200px] bg-blue-100"></div>
- Start dev server again Problem: angular-cli says tailwind is in watch mode but its not refreshing or adding new class. Not only changing classes cause this error. From time to time tailwind just stopped generating style for classes.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
TailwindCSS 3 in JIT mode and Angular 13 persistent cache
When I update my project to TailwindCSS 3, all seems to work fine at first but whenever I use new Tailwind classes they...
Read more >Tailwind css classes does not work until I change and save ...
I had to change something in styles.scss file or tailwind.config.js file and then save it to reflect the new classes! angular · tailwind-css....
Read more >Just-in-Time Mode - Tailwind CSS
Styles don't update when saving content files ... As of Tailwind CSS v2.2+, the JIT engine depends on PostCSS's directory dependency messages to...
Read more >How to enable Tailwind JIT compilation mode in your Angular ...
Edit the tailwind.config.js file to enable jit compilation. Update the purge array with the path to your components. If purge is not ......
Read more >How to Use Tailwind's Just-in-Time Mode in Angular
Set the mode option to jit in our tailwind.config.js file. Set the TAILWIND_MODE environment variable to build or watch . But we also...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just-in-Time build css still not working in Angular v13 and Tilewindcss v3.0.15. Can help me someone?
This not work for me. export const environment = { production: false, TAILWIND_MODE: ‘build’ };
Build with firs change save in home component works. Another save not works.
you must upgraded from Angular 13.0 to 13.2.2 via the Angular CLI command ng update ( this is solution from Angular: https://github.com/angular/angular-cli/pull/22447 )