Skip to content

Commit ba4a756

Browse files
committed
expand source map section in Readme
1 parent 6f90155 commit ba4a756

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ Plugin to be used. Multiple plugins can be specified. At least one plugin needs
4545

4646
#### `--map|-m`
4747

48-
Activate source-map. If you're using `--map|-m file` a seperate `.map` file is generated.
48+
Activate source map generation. By default inline maps are generated. To generate source maps
49+
in a separate _.map_ file use `--map file` or `--no-map.inline`.
50+
51+
You can use [advances source map options][source-map-options] - some examples:
52+
53+
- `--no-map` - do not generated source maps - even if previous maps exist
54+
- `--map.annotation <path>` - specify alternaive path to be used in source map annotation appended to CSS
55+
- `--no-map.annotation` - supress adding annotation to CSS
56+
- `--no-map.sourcesContent` - remove origin CSS from maps
4957

5058
#### `--local-plugins`
5159

@@ -157,3 +165,4 @@ MIT
157165

158166
[postcss]: https://github.com/postcss/postcss
159167
[postcss-import]: https://github.com/postcss/postcss-import
168+
[source-map-options]: https://github.com/postcss/postcss/blob/master/docs/source-maps.md

0 commit comments

Comments
 (0)