Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = function (content) {
resolvedFilename = self.resolveSync(dirContext, importToResolve);
// Add the resolvedFilename as dependency. Although we're also using stats.includedFiles, this might come
// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass.
self.dependency(resolvedFilename);
addNormalizedDependency(resolvedFilename);
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it.
resolvedFilename = resolvedFilename.replace(matchCss, '');
return {
Expand Down Expand Up @@ -160,7 +160,7 @@ module.exports = function (content) {
}
// Add the resolvedFilename as dependency. Although we're also using stats.includedFiles, this might come
// in handy when an error occurs. In this case, we don't get stats.includedFiles from node-sass.
self.dependency(resolvedFilename);
addNormalizedDependency(resolvedFilename);
// By removing the CSS file extension, we trigger node-sass to include the CSS file instead of just linking it.
resolvedFilename = resolvedFilename.replace(matchCss, '');

Expand Down Expand Up @@ -237,15 +237,15 @@ module.exports = function (content) {
return result.css.toString();
} catch (err) {
formatSassError(err);
err.file && this.dependency(err.file);
err.file && addNormalizedDependency(err.file);
throw err;
}
}

asyncSassJobQueue.push(opt, function onRender(err, result) {
if (err) {
formatSassError(err);
err.file && self.dependency(err.file);
err.file && addNormalizedDependency(err.file);
callback(err);
return;
}
Expand Down