Skip to content

Commit aaba55d

Browse files
committed
Merge pull request #5 from w0rm/4-omit-sourcemap-by-default
Disable source map by default
2 parents 84f19a8 + 62cd070 commit aaba55d

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ gulp.task('css', function () {
2626

2727
## Source map support
2828

29-
Source map is inlined by default, to extract map use together
29+
Source map is disabled by default, to extract map use together
3030
with [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps).
3131

3232
```js

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ module.exports = function (processors, options) {
1818
return cb(new gutil.PluginError('gulp-postcss', 'Streams are not supported!'))
1919
}
2020

21-
// Source map is inline by default
22-
var opts = { map: 'inline' }
21+
// Source map is disabled by default
22+
var opts = { map: false }
2323
var processor = postcss()
2424
var result
2525
var attr

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-postcss",
3-
"version": "1.0.2",
3+
"version": "2.0.0",
44
"description": "PostCSS gulp plugin",
55
"main": "index.js",
66
"scripts": {

test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ it('should transform css with multiple processors', function (cb) {
99

1010
var stream = postcss(
1111
[ doubler, doubler ]
12-
, { map: false } // omit source map for the test
1312
)
1413

1514
stream.on('data', function (file) {

0 commit comments

Comments
 (0)