Skip to content

Commit f44289b

Browse files
authored
Merge pull request #398 from webpack-contrib/pr/origin/395
Pr/origin/395
2 parents e21b8f5 + 462ae5f commit f44289b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/loader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ function sassLoader(content) {
4343
addNormalizedDependency
4444
));
4545

46+
// Skip empty files, otherwise it will stop webpack, see issue #21
47+
if (options.data.trim() === "") {
48+
callback(null, "");
49+
return;
50+
}
51+
4652
// start the actual rendering
4753
asyncSassJobQueue.push(options, (err, result) => {
4854
if (err) {

0 commit comments

Comments
 (0)