Skip to content

Exporting as an npm package not working #2924

Answered by 12joan
Klausdk1999 asked this question in Q&A
Discussion options

You must be logged in to vote
'./node_modules',

This entry isn't valid. It needs to be a glob pattern matching specific files, not a directory. Something like ./node_modules/YOUR_PACKAGE/dist/*.js, or whatever is necessary to match the set of source files containing your Tailwind class names.

This grep command might help figure out which files to include:

grep -r focus-visible:outline-none node_modules/YOUR_PACKAGE

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@12joan
Comment options

@Klausdk1999
Comment options

@Klausdk1999
Comment options

@12joan
Comment options

Answer selected by Klausdk1999
@12joan
Comment options

@Klausdk1999
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants