mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Fix it so css.TailwindCSS inlineImports options isn't always enabled
To avoid breaking existing setup and to make a better default option, the option is now `disableInlineImports` (default false). Fixes #13719
This commit is contained in:
@@ -69,7 +69,6 @@ func (c *PostCSSClient) Process(res resources.ResourceTransformer, options map[s
|
||||
}
|
||||
|
||||
type InlineImports struct {
|
||||
// Service `mapstructure:",squash"`
|
||||
// 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
|
||||
@@ -78,6 +77,11 @@ type InlineImports struct {
|
||||
// so you can have @import anywhere in the file.
|
||||
InlineImports bool
|
||||
|
||||
// See issue https://github.com/gohugoio/hugo/issues/13719
|
||||
// Disable inlining of @import statements
|
||||
// This is currenty only used for css.TailwindCSS.
|
||||
DisableInlineImports 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,
|
||||
|
Reference in New Issue
Block a user