mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
dartsass: Add sourceMapIncludeSources option
This commit is contained in:
@@ -127,6 +127,9 @@ type Options struct {
|
||||
|
||||
// When enabled, Hugo will generate a source map.
|
||||
EnableSourceMap bool
|
||||
|
||||
// If enabled, sources will be embedded in the generated source map.
|
||||
SourceMapIncludeSources bool
|
||||
}
|
||||
|
||||
func decodeOptions(m map[string]any) (opts Options, err error) {
|
||||
|
@@ -85,8 +85,9 @@ func (t *transform) Transform(ctx *resources.ResourceTransformationCtx) error {
|
||||
baseDir: baseDir,
|
||||
c: t.c,
|
||||
},
|
||||
OutputStyle: godartsass.ParseOutputStyle(opts.OutputStyle),
|
||||
EnableSourceMap: opts.EnableSourceMap,
|
||||
OutputStyle: godartsass.ParseOutputStyle(opts.OutputStyle),
|
||||
EnableSourceMap: opts.EnableSourceMap,
|
||||
SourceMapIncludeSources: opts.SourceMapIncludeSources,
|
||||
}
|
||||
|
||||
// Append any workDir relative include paths
|
||||
|
Reference in New Issue
Block a user