Skip to content

Commit

Permalink
🐛 Allow disabling of sourceMap generation in options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Søby Andersen committed Jun 7, 2017
1 parent 25d37e7 commit 1724bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var gulpSass = function gulpSass(options, sync) {
opts.includePaths.unshift(path.dirname(file.path));

// Generate Source Maps if plugin source-map present
if (file.sourceMap) {
if (opts.sourceMap !== false && file.sourceMap) {
opts.sourceMap = file.path;
opts.omitSourceMapUrl = true;
opts.sourceMapContents = true;
Expand Down

1 comment on commit 1724bee

@vincentmorneau
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God that saves my day. How is this not merged into gulp-sass yet? The upstream looks very unmaintained.

Please sign in to comment.