Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.
Open
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
4 changes: 3 additions & 1 deletion src/css/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ export default class SassCompiler extends CompilerBase {
} else {
// sass.js works in the '/sass/' directory
const cleanedRequestPath = request.resolved.replace(/^\/sass\//, '');
for (let includePath of includePaths) {
const cleanedPreviousPath = request.previous.replace(/^\/sass\//, '');
const includePaths_ = [path.dirname(cleanedPreviousPath)].concat(includePaths)
for (let includePath of includePaths_) {
const filePath = path.resolve(includePath, cleanedRequestPath);
let variations = sass.getPathVariations(filePath);

Expand Down