L
L
lavezzi12022-03-07 07:30:43
css
lavezzi1, 2022-03-07 07:30:43

How to remove unused component library css on tailwindcss?

Hello, I created a library of components using tailwindcss, installed it in projects and noticed that the css used in projects (classes) end up in the final assembly of the project, even if the components are not used. Are there any ways to avoid this?

In the config, obviously the content field looks like this:

content: ['./src/**/*.{vue,js}', 'node_modules/@kekw/ui/lib/**/*.{vue,js}'],


So it turns out that he scans the source code, sees matches by class and, accordingly, adds them to css for sale. How would this be avoided? If you remove this line from node_modules, then css will not be attracted at all.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question