From f5ec65f1c96ffb363d895a13f929523d09f348a5 Mon Sep 17 00:00:00 2001 From: Andrey Melikhov Date: Wed, 23 Oct 2024 12:16:47 +0300 Subject: [PATCH] fix: add node_modules to the sas includePaths --- gulpfile.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ad9d42309..7a672692c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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))); });