mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
- 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
8 lines
469 B
CSS
8 lines
469 B
CSS
/** SwiftTailwind assumes a Tailwind.css file is present in the root of target directory. **/
|
|
|
|
/** To align with Swift Package Manager's build plugin capability, SwiftTailwind requires explicitly register all inputs. */
|
|
/** You must specify `source(none)` after `tailwindcss` import and add `@source` for each source file / folder you want to include. */
|
|
@import "tailwindcss" source(none);
|
|
@source "./Example.swift";
|
|
@source "./Folder";
|
|
@source "./Folder/**/*.swift";
|