mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
fix: Specify UTF-8 encoding when reading Tailwind.css file
This commit is contained in:
parent
327ec788c8
commit
8d56a1d62b
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ struct TailwindCSSBuildPlugin: BuildToolPlugin {
|
|||
}
|
||||
|
||||
let tailwindCSSURL: URL = target.directoryURL.appending(component: "Tailwind.css")
|
||||
guard let cssContent = try? String(contentsOf: tailwindCSSURL) else {
|
||||
guard let cssContent = try? String(contentsOf: tailwindCSSURL, encoding: .utf8) else {
|
||||
throw BuildError.missingTailwindCSSFile
|
||||
}
|
||||
let matches = cssContent.matches(of: importStatementRegex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue