Skip to content

Commit 30f239b

Browse files
authored
fix(build): resolve SCSS imports from node_modules (#892)
1 parent 50d346b commit 30f239b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gulp.task('scss', () => {
3939
.pipe(
4040
replace(/@(import|use) '~.+'/g, (match) => match.replace('~', NODE_MODULES_DIR + '/')),
4141
)
42-
.pipe(sass())
42+
.pipe(sass({loadPaths: [NODE_MODULES_DIR]}))
4343
.pipe(gulp.dest(BUILD_DIR_CJS))
4444
.pipe(gulp.dest(BUILD_DIR_ESM))
4545
.pipe(concat('styles.css')) // also bundle all css to single file

0 commit comments

Comments
 (0)