Skip to content

Commit fbe05ef

Browse files
authored
fix: add node_modules to the sas includePaths (#1055)
1 parent f5a6054 commit fbe05ef

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

gulpfile.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,22 @@ task('copy-json', () => {
7272
});
7373

7474
task('styles-global', () => {
75-
return src('styles/styles.scss').pipe(sass().on('error', sass.logError)).pipe(dest('styles'));
75+
return src('styles/styles.scss')
76+
.pipe(
77+
sass({
78+
includePaths: ['node_modules'],
79+
}).on('error', sass.logError),
80+
)
81+
.pipe(dest('styles'));
7682
});
7783

7884
task('styles-components', () => {
7985
return src([`src/**/*.scss`, `!src/**/__stories__/**/*.scss`, '!src/widget/**/*.scss'])
80-
.pipe(sass().on('error', sass.logError))
86+
.pipe(
87+
sass({
88+
includePaths: ['node_modules'],
89+
}).on('error', sass.logError),
90+
)
8191
.pipe(dest(path.resolve(BUILD_CLIENT_DIR, ESM_DIR)))
8292
.pipe(dest(path.resolve(BUILD_CLIENT_DIR, CJS_DIR)));
8393
});

0 commit comments

Comments
 (0)