Source map rules
Closed this issue · 1 comments
attakei commented
Overview
Support to pass arguments for source map rules.
Design
SourceMapStyle = Literal:normal: Generate source maps with default style.none: Doesn't generate source map.embed: Generate source maps with source.
SourceMapUrl = Literal:relative: Set relative URL.absolute: Set absolute URL.embed: Setdata:prefixed URL.
When run for style.scss:
--no-source-map |
--embed-source-map |
--embed-sources |
--source-map-urls |
output.css | output.css.map |
|---|---|---|---|---|---|
| N | N | N | relative | With ref to source-map | created |
| N | N | N | absolute | With ref to source-map | created |
| N | N | Y | relative | With ref to source-map | created |
| N | N | Y | absolute | With ref to source-map | created |
| N | Y | N | relative | With source-map content | not created |
| N | Y | N | absolute | With source-map content | not created |
| N | Y | Y | relative | With source-map content | not created |
| N | Y | Y | absolute | With source-map content | not created |
| Y | - | - | -- | Only style | not created |
Note: output.css.map == created case is not working by STDOUT pattern.
Ref
https://sass-lang.com/documentation/cli/dart-sass/#source-maps
attakei commented
NOTE: I missunderstood about --source-map-urls and --embed-sources