Skip to content

Tailwind ignores my extend spacing #2497

Answered by simonswiss
bojandurmic asked this question in Help
Discussion options

You must be logged in to vote

Hey! 👋

Are you able to share your setup in a GitHub repo? There must be something wrong somewhere. I have just copied your config file above in a new project (not Nuxt, but I'd like to look at your setup). It generated the px-custom class for me, as well as all other expected (211 😅) utility classes.

Are you maybe accidentally looking at your side with NODE_ENV=production, and the spacing classes are not present in your templates, and therefore purged?

Side note: speaking of NODE_ENV, your enabled rule for purge (only run if NODE_ENV === 'production' is the default behaviour, so you technically don't need to define that.

If you share your project (or a minimal repro) in a repo, I'll have…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by bojandurmic
Comment options

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

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