Skip to content

Purge doesn't keep tailwind classes used in HTML #2703

Answered by noook
noook asked this question in Help
Discussion options

You must be logged in to vote

Alright alright, I figured it out. The build command doesn't seem to take main.ts as the entry point when outputting as a library, App.vue is. I moved the import instruction into the directory I'm building the library from and it works like a charm. Fixed in this commit

Special thanks to @sa3dany for leading me on the good path

I'll update my original post to mention that the output is a library and not an app, and that the entry point is not the one we all think about.

Replies: 10 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by noook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2703 on October 29, 2020 23:39.