From 911a7744cef1ce61a89b2910a14078ea63a3b909 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Mon, 6 Mar 2017 16:36:15 -0800 Subject: [PATCH] add comment as content string fallback --- lib/loader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/loader.js b/lib/loader.js index b5ec35bd..8584e66e 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -21,6 +21,7 @@ const asyncSassJobQueue = async.queue(sass.render, threadPoolSize - 1); * @param {string} content */ function sassLoader(content) { + content = content || '//'; const callback = this.async(); const isSync = typeof callback !== "function"; const self = this;