There was an error while loading. Please reload this page.
2 parents e21b8f5 + 462ae5f commit f44289bCopy full SHA for f44289b
lib/loader.js
@@ -43,6 +43,12 @@ function sassLoader(content) {
43
addNormalizedDependency
44
));
45
46
+ // Skip empty files, otherwise it will stop webpack, see issue #21
47
+ if (options.data.trim() === "") {
48
+ callback(null, "");
49
+ return;
50
+ }
51
+
52
// start the actual rendering
53
asyncSassJobQueue.push(options, (err, result) => {
54
if (err) {
0 commit comments