Skip to content

NUXT UI 3 with PostCSS - no live updates possible? #3898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Foddy opened this issue Apr 14, 2025 · 1 comment
Closed

NUXT UI 3 with PostCSS - no live updates possible? #3898

Foddy opened this issue Apr 14, 2025 · 1 comment
Labels
question Further information is requested v3 #1289

Comments

@Foddy
Copy link

Foddy commented Apr 14, 2025

Description

Hi everyone,

I’ve been stuck for hours and can’t seem to figure out the issue. Maybe someone here has an idea of what’s going wrong:

I’m starting a fresh new project using the latest versions of NUXT UI Pro, and I’m trying to get it to work with PostCSS and Less (I also tried SCSS -> same issue). Things seem to work generally, but I’m not getting any live updates in the browser when I modify a .less file and having the development server activated — the changes only appear after fully restarting the NUXT dev server.

Has anyone successfully set up a similar configuration using the latest NUXT UI Pro together with PostCSS and Tailwind CSS v4+? What am I missing?

Here is a demo: https://codesandbox.io/p/devbox/k6f4tk
(try to edit /styles/globals/defaults.less -> nothing happens 😩)

@Foddy Foddy added question Further information is requested v3 #1289 labels Apr 14, 2025
@benjamincanac
Copy link
Member

I've answered in the issue you created on nuxt/ui-pro already but for reference:

We're using the Vite plugin and not the PostCSS one so it's not possible. Also, as mentioned in the docs Tailwind CSS v4 is not designed to work with CSS preprocessors like Saas or Less, you can read more about this here: https://tailwindcss.com/docs/compatibility#sass-less-and-stylus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants