gohugoio / hugoDocs

The source for https://gohugo.io/
Apache License 2.0
1.03k stars 1.47k forks source link

Document changes to template functions in v0.128.0 #2637

Closed jmooring closed 1 month ago

jmooring commented 1 month ago
jmooring commented 1 month ago

This is obviously just a stub at this point: https://deploy-preview-2637--gohugoio.netlify.app/functions/css/tailwindcss/

The deprecation/renaming stuff is complete.

bep commented 1 month ago

Deprecate/rename: resources.ToCSS => css.SASS

Hmm... Maybe Sass would be more correct?

jmooring commented 1 month ago

Maybe Sass would be more correct?

Yes, it would be.

bep commented 1 month ago

OK, I have

  1. Renamed SASS => Sass
  2. Moved the aliases.
jmooring commented 1 month ago

I'm assuming the options map will look something like this: https://deploy-preview-2637--gohugoio.netlify.app/functions/css/tailwindcss/#options

bep commented 1 month ago

Tailwind options:

type TailwindCSSOptions struct {
    Minify        bool // Optimize and minify the output
    Optimize      bool //  Optimize the output without minifying

    // Enable inlining of @import statements.
    // Does so recursively, but currently once only per file;
    // that is, it's not possible to import the same file in
    // different scopes (root, media query...)
    // Note that this import routine does not care about the CSS spec,
    // so you can have @import anywhere in the file.
    InlineImports bool

    // When InlineImports is enabled, we fail the build if an import cannot be resolved.
    // You can enable this to allow the build to continue and leave the import statement in place.
    // Note that the inline importer does not process url location or imports with media queries,
    // so those will be left as-is even without enabling this option.
    SkipInlineImportsNotFound bool
}
bep commented 1 month ago

Merged in 012162e0d2ede071ad2b9637db5fb1dbd5995d52