gulp-clean-css icon indicating copy to clipboard operation
gulp-clean-css copied to clipboard

Not compatible with SASS?

Open Jesusjeco opened this issue 1 year ago • 1 comments
trafficstars

After using the function cleanCSS() my styles break apart. Suddnely the default styles of the browser were the main priority.

After I remove the function, everything went back to normal.

This is my code in the gulpfile.js

function runSASS(cb) { cb(); return src("src/scss/style.scss") .pipe(sass().on("error", sass.logError)) .pipe(cleanCSS()) .pipe(dest("dist/css/")); } //runSASS

And this is my package.js AFTER Iremoved the gulp-clean-css

"devDependencies": { "@babel/core": "^7.23.3", "@babel/preset-env": "^7.23.3", "gulp": "^4.0.2", "gulp-babel": "^8.0.0", "gulp-imagemin": "7.1.0", "gulp-sass": "^5.1.0", "gulp-uglify": "^3.0.2", "sass": "^1.69.5" },

Jesusjeco avatar Nov 28 '23 15:11 Jesusjeco

long shot but did u find a fix for this?

ibrahimAlselawi avatar Feb 17 '25 03:02 ibrahimAlselawi