gulp-dart-scss
Advanced tools
Comparing version 1.0.1 to 1.0.2
12
index.js
@@ -19,6 +19,11 @@ const through2 = require("through2"); | ||
// Ignore _name.scss files | ||
if (path.basename(file.path).indexOf("_") === 0) { | ||
return callback(); | ||
} | ||
(async () => { | ||
try { | ||
options.sourceMap = file.sourceMap ? file.path : false; | ||
options.file = options.file || file.path; | ||
options.file = file.path || options.file; | ||
@@ -46,5 +51,6 @@ const result = await dartSass.renderSync(options); | ||
} catch (error) { | ||
return callback( | ||
new pluginError("gulp-dart-scss", error, { fileName: file.path }) | ||
process.stderr.write( | ||
`${new pluginError("gulp-dart-scss", error.message).toString()} \r\n` | ||
); | ||
return callback(); | ||
} | ||
@@ -51,0 +57,0 @@ })(); |
{ | ||
"name": "gulp-dart-scss", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gulp plugin to compile Sass using the Dart Sass compiler.", | ||
@@ -5,0 +5,0 @@ "author": "Kasper Hesthaven", |
3873
49