gulp-sass icon indicating copy to clipboard operation
gulp-sass copied to clipboard

deprecation notice coming after upgrading gulp-sass from 5.1.0 => 6.0.1

Open nitesh-voya opened this issue 9 months ago • 1 comments

I am upgrading the gulp-sass from 5.1.0 to 6.0.1 and now its showing few deprecation in other external npm libraries Like below

Deprecation Warning [slash-div]: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(2em, 14) or calc(2em / 14)

More info and automated migrator: https://sass-lang.com/d/slash-div

   ╷
14 │   top: (2em / 14);
Deprecation Warning [color-functions]: lighten() is deprecated. Suggestions:

color.scale($color, $lightness: 40%)
color.adjust($color, $lightness: 20%)

More info: https://sass-lang.com/d/color-functions

    ╷
133 │ $custom-yellow-80: lighten($custom-yellow, 20%);

is there any option to suppress these deprecation warnings through the gulpfile.js file?

nitesh-voya avatar Mar 18 '25 11:03 nitesh-voya

gulp-sass supports all the options of the modern Sass JS API as it now uses it.

See the quietDeps and silenceDeprecations options to control the reporting of deprecations during Sass compilations.

stof avatar Sep 24 '25 14:09 stof