Alternative solution is, if you used Gulp to compile your SASS file,you need to introduce the includePaths to the config. Then once you import any module from a folder it considers looking at the paths you introduced already in "includePaths".
Ex)
gulp.task(`compileSASS`, function () {
return gulp.src(`styles/main.scss`)
.pipe(sass({
outputStyle: `expanded`,
precision: 10,
includePaths: [
'../../../feature',
'../../..',
]
})
.pipe(gulp.dest(`temp/styles`));
});
Now that you setup your code you can import files from various paths:
@import "promotion/code/styles/_promotion.scss";
To import this file, it will look at all "includePaths".