Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use gulp-stylelint with caching? #101

Open
Shaderpixel opened this issue May 10, 2018 · 0 comments
Open

How to use gulp-stylelint with caching? #101

Shaderpixel opened this issue May 10, 2018 · 0 comments

Comments

@Shaderpixel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant