Skip to content

Purge CSS configured twice (in PostCSS + Tailwind config files) #2104

Discussion options

You must be logged in to vote

You're purging two times and that's probably the cause.

You're configuring purge inside postcss.config.js https://github.com/KostaVuckovic/vue-movie-app/blob/master/postcss.config.js

And then in your tailwind.config.js https://github.com/KostaVuckovic/vue-movie-app/blob/master/tailwind.config.js

The 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:

purge: [
    content: [
    './src/**/*.html',
    './src/**/*.vue',
    './src/*…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KostaVuckovic
Comment options

Answer selected by KostaVuckovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants