From c9506dd5cfb78f155ea4e38f09e060233c4f691b Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Wed, 13 Nov 2024 17:57:50 +0300 Subject: [PATCH] fix: fix incorrect scss "use" (#1943) --- gulpfile.js | 14 ++++++++++++-- .../MobileImagePreview/MobileImagePreview.scss | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2b87f3a05c..94b7be70f1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -53,13 +53,23 @@ task('copy-i18n', () => { task('styles-global', () => { return src(['styles/styles.scss', 'styles/fonts.scss']) - .pipe(sass().on('error', sass.logError)) + .pipe( + sass().on('error', function (error) { + sass.logError.call(this, error); + process.exit(1); + }), + ) .pipe(dest('styles')); }); task('styles-components', () => { return src(['src/components/**/*.scss', '!src/components/**/__stories__/**/*']) - .pipe(sass().on('error', sass.logError)) + .pipe( + sass().on('error', function (error) { + sass.logError.call(this, error); + process.exit(1); + }), + ) .pipe(dest(path.resolve(BUILD_DIR, 'esm', 'components'))) .pipe(dest(path.resolve(BUILD_DIR, 'cjs', 'components'))); }); diff --git a/src/components/FilePreview/MobileImagePreview/MobileImagePreview.scss b/src/components/FilePreview/MobileImagePreview/MobileImagePreview.scss index 5c0b27d21e..bdf97930f9 100644 --- a/src/components/FilePreview/MobileImagePreview/MobileImagePreview.scss +++ b/src/components/FilePreview/MobileImagePreview/MobileImagePreview.scss @@ -1,5 +1,5 @@ @use '../../variables'; -@use '@gravity-ui/uikit/styles/mixins'; +@use '../../../../styles/mixins'; $block: '.#{variables.$ns}mobile-image-preview';