Aug 22, 2022
11
Level 3
LAravel 9 Vite : Remove Unused styles from my custom css file.
Hello, I'm starting a new project, I installed Laravel ("laravel/framework": "^9.19") and setup vite with breeze, I want to use some custom css from a custom file, lets call it theme.css.
After importing the file to the app.css i get the following :
@import "./theme.css";
@tailwind base;
@tailwind components;
@tailwind utilities;
When building the styles I get all the styles from theme.css, even the ones that I'm not using. Only Tailwind styles are purged. How can I purge unused css from this file ?
I'm wasn't able to find how to do this with vite.
Thanks.
Please or to participate in this conversation.