Skip to content

Commit

Permalink
Merge pull request #398 from webpack-contrib/pr/origin/395
Browse files Browse the repository at this point in the history
Pr/origin/395
  • Loading branch information
jhnns authored Mar 7, 2017
2 parents e21b8f5 + 462ae5f commit f44289b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f44289b

Please sign in to comment.