Skip to content

How to configure TailwindCSS 4 with Angular and Vite? #17716

Discussion options

You must be logged in to vote

Well, after further research, it seems the answer is that the Angular team decided that vite's role in their ecosystem is rather more limited than in other frameworks. It's not used in the build process at all. 😞 The vite.config.mts file is used for vitest only.

I'm going to explore getting the PostCSS pipeline up and running, or maybe converting over to Analog, as that replaces Angular's build system and supports the full vite ecosystem.

[edit] on further review, it looks like PostCSS isn't compatible with Angular 19 either, at least not with Nx.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@wongjn
Comment options

@DarthRainbows
Comment options

Answer selected by DarthRainbows
@DarthRainbows
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants