When I run gulp build, I encounter a specific error in the CLI
events.js:141
throw er; // Error event not handled
^
Error: E:\Projects\gulp\css\styles.min.css:546:10: Missing semicolon ←[90m 544 | ←[39m b
ackground←[33m:←[39m ←[36m-ms-linear-gradient←[39m←[36m(top, #5c710d 0%,#93b904 100%)←[39m←[33m;←[39m
←[90m 545 | ←[39m background←[33m:←[39m ←[36mlinear-gradient←[39m←[36m(to bottom, #5c710d 0%,#93b904 100%)←[39m←[33m;←[39m
←[31m←[1m>←[22m←[39m←[90m 546 | ←[39m filter←[33m:←[39m progid ←[33m:←[39m←[36mDXImageTransform.Microsoft.gradient←[39m←[36m(←[39m star
tColorstr=←[32m'#5c710d'←[39m, endColorstr=←[32m'#93b904'←[39m,GradientType=0 ←[36m)←[39m←[33m;←[39m
←[90m | ←[31m←[1m^←[22m←[39m
←[90m 547 | ←[39m←[33m}←[39m
←[90m 548 | ←[39m←[33m.ui-overlay-c←[39m ←[33m{←[39m
The CSS rule for gradients used in the stylesheet is browser specific
background: -moz-linear-gradient(top, #5c710d 0%, #93b904 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5c710d), color-stop(100%,#93b904));
background: -webkit-linear-gradient(top, #5c710d 0%,#93b904 100%);
background: -o-linear-gradient(top, #5c710d 0%,#93b904 100%);
background: -ms-linear-gradient(top, #5c710d 0%,#93b904 100%);
background: linear-gradient(to bottom, #5c710d 0%,#93b904 100%);
filter: progid :DXImageTransform.Microsoft.gradient( startColorstr='#5c710d', endColorstr='#93b904',GradientType=0 );
The node packages being used are,
"devDependencies": {
"bower": "^1.8.0",
"gulp": "^3.9.1"
"browser-sync": "^2.18.8",
"del": "^2.2.2",
"gulp-autoprefixer": "^3.1.1",
"gulp-cache": "^0.4.6",
"gulp-cssnano": "^2.1.2",
"gulp-if": "^2.0.2",
"gulp-imagemin": "^3.1.1",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.4.1",
"gulp-uglify": "^2.1.2",
"gulp-useref": "^3.1.2",
"run-sequence": "^1.2.2"
}
Finally, here is the gulp sass task
gulp.task('sass', function() {
return gulp.src('app/scss/**/*.scss') // Gets all .scss files in app/scss and subdirectories
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError)) // Compiles with gulp-sass, logs errors
.pipe(sourcemaps.write())
.pipe(gulp.dest('app/css')) // Outputs to css folder
.pipe(browserSync.reload({ // Live reload with Browser Sync
stream: true
}));
})
How can I resolve this error? Any assistance or guidance will be highly appreciated. Thank you in advance. Currently using node 4.4.4
A new error message has emerged.
events.js:141
throw er; // Error event not handled
^
Error: E:\Projects\gulp\css\styles.min.css:1429:19: Unknown word ←[90m 1427 |
←[39m←[33m}←[39m
←[90m 1428 | ←[39m←[33m.list←[39m ←[33m.icn←[39m ←[33m{←[39m
←[31m←[1m>←[22m←[39m←[90m 1429 | ←[39m margin-top←[33m:←[39m 10px!important
←[90m | ←[31m←[1m^←[22m←[39m
←[90m 1430 | ←[39m←[33m}←[39m
←[90m 1431 | ←[39m←[33m.list←[39m ←[33m.txt←[39m ←[33m{←[39m
Please suggest ways to interpret these types of errors. Are there any online CSS linters for gulp-sass or Atom add-ons that can help lint CSS before gulp-build? Thank you once again