mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
Improve source file detection and tests
- Use SwiftPM-provided sourceFiles for filtering - Add Utils.swift with URL descendant check - Update example to use Views/ instead of Folder/ - Add test for non-included Swift file - Update .zed settings to disable VSCode CSS language server
This commit is contained in:
parent
cfb5d2a4a2
commit
8359d795eb
8 changed files with 68 additions and 9 deletions
5
Sources/SwiftTailwindExample/NotIncluded.swift
Normal file
5
Sources/SwiftTailwindExample/NotIncluded.swift
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// This file is not included in Tailwind.css, so TW classes here will not be generated.
|
||||
let html =
|
||||
"""
|
||||
<a href="swift.org" class="text-sm">Swift</a>
|
||||
"""
|
||||
|
|
@ -4,5 +4,5 @@
|
|||
/** 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";
|
||||
@source "./Views";
|
||||
@source "./Views/**/*.swift";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue