gulp-community / gulp-less

A LESS plugin for Gulp
559 stars 116 forks source link

Add an option to ignore bad files #274

Closed jdnichollsc closed 7 years ago

jdnichollsc commented 7 years ago

Hi guys,

Thanks for this excellent plugin, can you add an option to ignore bad files? Check my issue please:

[01:12:24] Starting 'less'...
Potentially unhandled rejection [2] variable @icon-font-path is undefined in file C:\dev\bevyup\dashboard_client\src\BevyUp.DashboardClient.Web\wwwroot\App\css\glyphicons.less line no. 13

I want to execute the next pipe (gulp.dest) ignoring the bad files. My package.json:

{
  "devDependencies": {
    "gulp": "^3.9.1",
    "gulp-uglify": "^3.0.0",
    "run-sequence": "^1.2.2",
    "gulp-less": "^3.3.2",
    "gulp-plumber": "^1.1.0",
    "gulp-rev": "^7.1.2"
  }
}

Thanks in advance, Nicholls

stephenlacy commented 7 years ago

Bad files? This is a plugin that takes the input source from gulp.src. Use the proper glob matching to ignore the "bad files" from gulp.

https://stackoverflow.com/a/24648667/1041104

jdnichollsc commented 7 years ago

Hi @stevelacy, Thanks for your quickly response, I want to ignore file exceptions, Is it possible? Thanks