3 ms·
I think we largely agree, so I'll go back to focusing on the tool. > Isn't that something Tailwind can't do? Tailwind will load every style, every time, right?
by yurishimo 3y ago
I think we largely agree, so I'll go back to focusing on the tool.
> Isn't that something Tailwind can't do? Tailwind will load every style, every time, right?
Tailwind's only function is:
- Scan codebase
- Generate classes
- Save them in a file with the a .css extension.
Anything else that you want is outside the scope of the tool. It makes no assumptions about what your files are named, where they are, or how it's loaded in the browser. At the end of the day, it's up to the developer to write `<link rel="stylesheet" href="/path/to/my/generated/file.css">`
This is no different or made easier/harder by using Tailwind.
- emmacharp 3y agoBut can you split the Tailwind styles in multiple files so that only what is now displayed in the browser is loaded? That's the part I'm not sure of.