diff --git a/lib/loader.js b/lib/loader.js index b5ec35bd..da601753 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -43,6 +43,12 @@ function sassLoader(content) { addNormalizedDependency )); + // Skip empty files, otherwise it will stop webpack, see issue #21 + if (options.data.trim() === "") { + callback(null, ""); + return; + } + // start the actual rendering asyncSassJobQueue.push(options, (err, result) => { if (err) {