PurgeCSS deletes all styles except styles from app.scss and always (not only when NODE_ENV=production) in Laravel mix #2092
Unanswered
FragsterAt
asked this question in
Help
Replies: 1 comment
-
After upgrading to 1.6.1 and changing app.scss to ...
/* purgecss start ignore */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* purgecss end ignore */
... everything start working as expected. But I think, that comments appled to prod build, not for development |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In fresh laravel project I install tailwindcss, using instruction https://tailwindcss.com/docs/installation/ 1, 2, 3
webpack.mix.js:
tailwind.config.js
app.scss
When I run
npm run dev
ornpm run prod
resulting app.css file contains correct style for body, but dont contain any styles nor from blade templates, nor from vue components.I expect, that in dev mode there would be all styles from tailwind, in prod file - styles from laravel and vue templates.
Beta Was this translation helpful? Give feedback.
All reactions