mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
Improve glob handling for source paths and update docs
- Simplify glob handling in TailwindCSSBuildPlugin to support ** patterns - Update README and Tailwind.css example to clarify glob usage - Add Template.swift example using Tailwind classes - Extend tests to verify class extraction from globbed Swift files
This commit is contained in:
parent
7c848062ec
commit
e23147768d
5 changed files with 15 additions and 3 deletions
|
|
@ -29,7 +29,8 @@ Place your Tailwind CSS entrypoint file at `Tailwind.css` in your target. To int
|
|||
|
||||
```css
|
||||
@import "tailwindcss" source(none);
|
||||
@source "./Views";
|
||||
/* Note that as of writing, Tailwind doesn't scan .swift files by default, so you need to specify a glob pattern including the extension. */
|
||||
@source "./Views/**/*.swift";
|
||||
@source "./Template.swift";
|
||||
@source "./Static";
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue