We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following returns Unexpected EOF no matter the indented sass input. Is this a bug, or am I going about this incorrectly?
Unexpected EOF
import ( "log" "os" "github.com/bep/godartsass/v2" ) func Compile() { sassTranspiler, err := godartsass.Start(godartsass.Options{}) if err != nil { log.Fatal(err) } defer sassTranspiler.Close() result, err := sassTranspiler.Execute(godartsass.Args{ Source: "./_index.sass", OutputStyle: godartsass.OutputStyleCompressed, SourceSyntax: godartsass.SourceSyntaxSASS, EnableSourceMap: true, }) if err != nil { log.Fatal(err) } os.WriteFile("../assets/style.css", []byte(result.CSS), 0644) os.WriteFile("../assets/style.css.map", []byte(result.SourceMap), 0644) }
Copilot told me to scrap it and use exec.Command("sass" ...)
exec.Command("sass" ...)
The text was updated successfully, but these errors were encountered:
Got to love AI.
As to the issue, your usage looks correct, but I have not seen any similar reports in Hugo.
I suspect you need to upgrade your Sass version. The protocol used in this library is relatively new, see https://gohugo.io/functions/resources/tocss/#installation-overview
Sorry, something went wrong.
No branches or pull requests
The following returns
Unexpected EOF
no matter the indented sass input. Is this a bug, or am I going about this incorrectly?Copilot told me to scrap it and use
exec.Command("sass" ...)
The text was updated successfully, but these errors were encountered: