Closed
Description
What version of Tailwind CSS are you using?
v4.1.4 (the problem starts from 4.0.10)
What build tool (or framework if it abstracts the build tool) are you using?
Laravel 12, Vite ^6.2.4, @tailwindcss/vite ^4.1.4
What version of Node.js are you using?
v20.9.0 | v22.14.0
What operating system are you using?
System:
OS: Linux 5.15 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 6.89 GB / 14.63 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
bun: 1.2.9 - ~/.bun/bin/bun
npmPackages:
vite: ^6.2.4 => 6.2.6
Reproduction URL
https://github.com/emaia/laravel/tree/vite-bug
Describe your issue
I'm working on a Laravel project that uses Vite. Everything was working great, but after adding a GeoJson file in a backend folder, Vite started running very slowly. Build runs changed from 400ms to 1m17s. Dev is also very slow.
This GeoJson file is unrelated to the frontend stuff and not referenced by any JS/CSS code.
Steps to reproduce
- Clone the repo https://github.com/emaia/laravel/tree/vite-bug
(It's just a fork from laravel/laravel + 19mb geojson file) - npm install, npm run build (runs slow)
- Delete the file database/seeders/payload/limites_munic_rj.geojson and rerun build. It runs fast.
- If revert
@tailwindcss/vite to 4.0.9
or change css toimport 'tailwindcss' source(none);
it runs fast. - Starting from @tailwindcss/vite v4.0.10, something happens.
Metadata
Metadata
Assignees
Labels
No labels