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

Issue with running the linter #61

Open
martijnrusschen opened this issue Dec 18, 2015 · 3 comments
Open

Issue with running the linter #61

martijnrusschen opened this issue Dec 18, 2015 · 3 comments

Comments

@martijnrusschen
Copy link

Hi, tried to include this plugin in our gulp file. However, I'm getting this error:

sass         | { [Error: Input file did not exist or was not readable]
sass         |   message: 'Input file did not exist or was not readable',
sass         |   showStack: false,
sass         |   showProperties: true,
sass         |   plugin: 'gulp-scss-lint',
sass         |   __safety: { toString: [Function: bound ] } }

Any idea what this could be? Running the linter with the gem works fine.

@juanfran
Copy link
Owner

Could you tell me your config? Also you can add the verbose option and see the scss-lint command

thanks

@martijnrusschen
Copy link
Author

Where should I add verbose? This is the task itself:

gulp.task('sass', function() {
  var src = gulp.src('frontend/assets/stylesheets/*.scss');

  return src
    .pipe(sourcemaps.init())
    .pipe(sass())
    .pipe(scsslint())
    .pipe(replaceAssetDataUrl())
    .pipe(autoprefixer({
      browsers: [
        'last 2 versions', 'Chrome >= 19', 'Safari >= 4.0', 'Opera >= 10.5',
        'Firefox >= 3.7', 'Explorer >= 10'
      ],
      cascade: false,
      remove: true}))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('public/assets'));
});

@juanfran
Copy link
Owner

scss-lint must be before the sass plugin or in a different task

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

2 participants