-
Notifications
You must be signed in to change notification settings - Fork 34
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
Config file not found when scss-lint is a dependency of another task #13
Comments
Temporary solution gulp.task('scss-lint', function() {
gulp.src(paths.cssSrc + '/**/*.scss')
.pipe(cache('scsslint'))
.pipe(scsslint({'config': __dirname + '/.scss-lint.yml'})).on('error', handleError);
}); |
It's strange, the same code works well for me... Do you run gulp from another directory? |
Sorry for the late reply! I did some more debugging, and the problem seems to occur when you run scss-lint as a dependency of another task. I can run it fine on it's own, but as soon as I run Stack trace:
|
I tried to do the same and it's works well. Could you make some changes in the plugin? Edit ./node_modules/gulp-scss-lint/index.js in the line 59 add and tell me what it returns. Thanks! |
It returns Problem looks to be that it tries to use |
Sorry but I don't know that it could be happening, the plugin does't modify the options |
If I run this code, it works without any problems:
But if I add this task as a dependency to another task like so:
I get an error because it can't find my config file.
I'm using scss-lint v0.29 and gulp-scss-lint v0.1.4. My config file is in the same location as my Gulpfile.
The text was updated successfully, but these errors were encountered: