Skip to content

Commit

Permalink
Fix: Error when scss file is empty parcel-bundler#327
Browse files Browse the repository at this point in the history
  • Loading branch information
gongpeione committed Dec 19, 2017
1 parent adabe2e commit 259de38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/SASSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class SASSAsset extends CSSAsset {
opts.includePaths = (opts.includePaths || []).concat(
path.dirname(this.name)
);
opts.data = code;
// Prevent error when code is empty
opts.data = code || ' ';
opts.indentedSyntax =
typeof opts.indentedSyntax === 'boolean'
? opts.indentedSyntax
Expand Down

0 comments on commit 259de38

Please sign in to comment.