Skip to content

Commit 206a262

Browse files
author
Nils Schönwald
committed
Fix npm run option. Update readme.
1 parent 5c04406 commit 206a262

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Readme.md

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

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

48-
Generate source-map.
48+
Activate source-map. If you're using `--map|-m file` a seperate `.map` file is generated.
4949

5050
#### `--local-plugins`
5151

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ function compile(input, fn) {
174174
}
175175

176176
map = typeof argv.map !== 'undefined' ? argv.map : false;
177+
if (map === 'file') {
178+
map = { inline:false };
179+
}
177180

178181
processCSS(processor, input, output, map, fn);
179182
}

0 commit comments

Comments
 (0)