Fix lack of default for `options`

master
Sven Slootweg 7 years ago
parent 07a1199e22
commit 1ddddd0f2e

@ -6,7 +6,7 @@ const livereloadPartial = require("@joepie91/gulp-partial-livereload");
const cache = require("gulp-cached");
const sass = require("gulp-sass");
module.exports = function(options) {
module.exports = function(options = {}) {
let cacheKey = (options.cacheKey != null) ? options.cacheKey : "preset";
let streamList = [
@ -23,4 +23,4 @@ module.exports = function(options) {
basePath: options.basePath
}
});
}
}

Loading…
Cancel
Save