Skip to content

Commit

Permalink
Fix Sass dependencies can not be watched when includePaths is a relat…
Browse files Browse the repository at this point in the history
…ive path (#1619)
  • Loading branch information
2zH authored and devongovett committed Jun 30, 2018
1 parent a578c33 commit 6ccaf6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/assets/SASSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ class SASSAsset extends Asset {
let opts =
(await this.getConfig(['.sassrc', '.sassrc.js'], {packageKey: 'sass'})) ||
{};
opts.includePaths = (opts.includePaths || []).concat(
path.dirname(this.name)
);
opts.includePaths = (opts.includePaths
? opts.includePaths.map(includePath => path.resolve(includePath))
: []
).concat(path.dirname(this.name));
opts.data = opts.data ? opts.data + os.EOL + code : code;
let type = this.options.rendition
? this.options.rendition.type
Expand Down

0 comments on commit 6ccaf6d

Please sign in to comment.