From 1ddddd0f2eef589cfefdf761c66039e7a0780470 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 18 Dec 2016 21:29:53 +0100 Subject: [PATCH] Fix lack of default for `options` --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 03cba37..5c10b91 100644 --- a/src/index.js +++ b/src/index.js @@ -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 } }); -} \ No newline at end of file +}