Skip to content

Commit

Permalink
fix: fix incorrect scss "use" (#1943)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored Nov 13, 2024
1 parent 0ebf4cd commit c9506dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')));
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../../variables';
@use '@gravity-ui/uikit/styles/mixins';
@use '../../../../styles/mixins';

$block: '.#{variables.$ns}mobile-image-preview';

Expand Down

0 comments on commit c9506dd

Please sign in to comment.