gulp-cssnano
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -0,1 +1,6 @@ | ||
# 2.1.0 | ||
* Print a CssSyntaxError when the input CSS could not be parsed properly with | ||
PostCSS (thanks to @stelund). | ||
# 2.0.1 | ||
@@ -2,0 +7,0 @@ |
14
index.js
@@ -34,3 +34,15 @@ 'use strict'; | ||
cb(); | ||
}.bind(this)); | ||
}.bind(this), | ||
function (error) { | ||
var errorOptions = {fileName: file.path}; | ||
if (error.name === 'CssSyntaxError') { | ||
error = error.message + error.showSourceCode(); | ||
errorOptions.showStack = false; | ||
} | ||
// Prevent stream’s unhandled exception from | ||
// being suppressed by Promise | ||
setImmediate(function () { | ||
cb(new PluginError(PLUGIN_NAME, error)); | ||
}); | ||
}); | ||
} | ||
@@ -37,0 +49,0 @@ }; |
{ | ||
"name": "gulp-cssnano", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Minify CSS with cssnano.", | ||
@@ -33,3 +33,7 @@ "main": "index.js", | ||
"vinyl-sourcemaps-apply": "^0.2.1" | ||
} | ||
}, | ||
"files": [ | ||
"LICENSE-MIT", | ||
"index.js" | ||
] | ||
} |
5483
46
5