Make reports folder if it does not exist
This commit is contained in:
parent
2fcb93f6d6
commit
902016afff
1 changed files with 4 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ function style() {
|
|||
}
|
||||
// Linting
|
||||
function styleLint() {
|
||||
var dir = output.reports;
|
||||
if (!fs.existsSync(dir)){
|
||||
fs.mkdirSync(dir);
|
||||
}
|
||||
var file = fs.createWriteStream(output.reports +'/sass-lint.html');
|
||||
var stream = src(input.style)
|
||||
.pipe(plumber())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue