Make reports folder if it does not exist

This commit is contained in:
Stephan 2019-03-19 20:32:49 +01:00
parent 2fcb93f6d6
commit 902016afff

View file

@ -141,6 +141,10 @@ function style() {
} }
// Linting // Linting
function styleLint() { function styleLint() {
var dir = output.reports;
if (!fs.existsSync(dir)){
fs.mkdirSync(dir);
}
var file = fs.createWriteStream(output.reports +'/sass-lint.html'); var file = fs.createWriteStream(output.reports +'/sass-lint.html');
var stream = src(input.style) var stream = src(input.style)
.pipe(plumber()) .pipe(plumber())