gulp-clean-css
gulp-clean-css copied to clipboard
Not compatible with SASS?
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" },
long shot but did u find a fix for this?