Purge CSS configured twice (in PostCSS + Tailwind config files) #2104
-
Hello, I'm building Vue movie app with TailwindCSS and everything is fine when I open in localhost, but when I build for production with 'npm run build' and get that 'dist' folder and upload folder to netlify e.g. , style doesnt show up. I followed all steps in official site and still don't get it. Here is my public git repository: https://github.com/KostaVuckovic/vue-movie-app |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're purging two times and that's probably the cause. You're configuring And then in your The first time you are purging the I didn't run your code, but if you stick with one config (chose PostCSS or Tailwind) and pass If you go for purge: [
content: [
'./src/**/*.html',
'./src/**/*.vue',
'./src/**/*.js',
],
], |
Beta Was this translation helpful? Give feedback.
You're purging two times and that's probably the cause.
You're configuring
purge
insidepostcss.config.js
https://github.com/KostaVuckovic/vue-movie-app/blob/master/postcss.config.jsAnd then in your
tailwind.config.js
https://github.com/KostaVuckovic/vue-movie-app/blob/master/tailwind.config.jsThe first time you are purging the
.vue
files, while in the second you're purging (two times) only.html
.I didn't run your code, but if you stick with one config (chose PostCSS or Tailwind) and pass
purge
the right paths, it will probably fix the problem.If you go for
tailwind.config.js
,purge
would look like this: