Skip to content

Commit

Permalink
chore: use original gulp-sass
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Nov 27, 2024
1 parent 2b55ec1 commit 292ff7a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 45 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
const path = require('path');

const {task, src, dest, series, parallel} = require('gulp');
const sass = require('gulp-dart-sass');
const replace = require('gulp-replace');
const sass = require('gulp-sass')(require('sass'));
const ts = require('gulp-typescript');
const {rimrafSync} = require('rimraf');

Expand Down Expand Up @@ -55,7 +55,7 @@ task('copy-i18n', () => {
task('styles-global', () => {
return src(['styles/styles.scss', 'styles/fonts.scss'])
.pipe(
sass({silenceDeprecations: ['legacy-js-api']}).on('error', function (error) {
sass.sync().on('error', function (error) {
sass.logError.call(this, error);
process.exit(1);
}),
Expand All @@ -66,7 +66,7 @@ task('styles-global', () => {
task('styles-components', () => {
return src(['src/components/**/*.scss', '!src/components/**/__stories__/**/*'])
.pipe(
sass({silenceDeprecations: ['legacy-js-api']}).on('error', function (error) {
sass.sync().on('error', function (error) {
sass.logError.call(this, error);
process.exit(1);
}),
Expand Down
68 changes: 27 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
"eslint-plugin-testing-library": "^6.5.0",
"gulp": "^5.0.0",
"gulp-cli": "^3.0.0",
"gulp-dart-sass": "^1.1.0",
"gulp-replace": "^1.1.4",
"gulp-sass": "^6.0.0",
"gulp-typescript": "^5.0.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
Expand Down

0 comments on commit 292ff7a

Please sign in to comment.