You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am trying to understand using gulp-stylelint with gulp-cache. I have looked online for any hints of how to implement caching with gulp-stylint and couldn't find one. I read #75 and I am not sure how the caching can be done on Gulp level. If I were to use gulp-cache I will need to remove the cache keys when an error occur like so (taken from gulp-eslint examples): .pipe($.eslint.result((result) => { if (result.warningCount > 0 || result.errorCount > 0) { delete $.cached.caches.eslint[path.resolve(result.filePath)]; } }))
If this is the way to do it, then how can I get hold of the file path that threw an error in stylelint? And I would assume to do the cache delete in an error handling event.
I apologize in advance if this is not the place to ask such questions as I have exhausted my options. Thank you.
The text was updated successfully, but these errors were encountered:
Hi there, I am trying to understand using gulp-stylelint with gulp-cache. I have looked online for any hints of how to implement caching with gulp-stylint and couldn't find one. I read #75 and I am not sure how the caching can be done on Gulp level. If I were to use gulp-cache I will need to remove the cache keys when an error occur like so (taken from gulp-eslint examples):
.pipe($.eslint.result((result) => {
if (result.warningCount > 0 || result.errorCount > 0) {
delete $.cached.caches.eslint[path.resolve(result.filePath)];
}
}))
If this is the way to do it, then how can I get hold of the file path that threw an error in stylelint? And I would assume to do the cache delete in an error handling event.
I apologize in advance if this is not the place to ask such questions as I have exhausted my options. Thank you.
The text was updated successfully, but these errors were encountered: