Skip to content

Commit

Permalink
fix: add node_modules to the sas includePaths
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev committed Oct 23, 2024
1 parent f5a6054 commit f5ec65f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,22 @@ task('copy-json', () => {
});

task('styles-global', () => {
return src('styles/styles.scss').pipe(sass().on('error', sass.logError)).pipe(dest('styles'));
return src('styles/styles.scss')
.pipe(
sass({
includePaths: ['node_modules'],
}).on('error', sass.logError),
)
.pipe(dest('styles'));
});

task('styles-components', () => {
return src([`src/**/*.scss`, `!src/**/__stories__/**/*.scss`, '!src/widget/**/*.scss'])
.pipe(sass().on('error', sass.logError))
.pipe(
sass({
includePaths: ['node_modules'],
}).on('error', sass.logError),
)
.pipe(dest(path.resolve(BUILD_CLIENT_DIR, ESM_DIR)))
.pipe(dest(path.resolve(BUILD_CLIENT_DIR, CJS_DIR)));
});
Expand Down

0 comments on commit f5ec65f

Please sign in to comment.