gulp-csscomb icon indicating copy to clipboard operation
gulp-csscomb copied to clipboard

"Configuration file not found" with predefined config

Open JonGarbayo opened this issue 6 years ago • 0 comments

Hi!

I'm new to Gulp, and I have a little problem with your module.

This code:

var gulp = require('gulp'),
    sass = require('gulp-sass'),
    csscomb = require('gulp-csscomb');

gulp.task('build-sass', function ()
{
    return gulp.src('css/bemit/main.scss')
        .pipe(sass())
        .pipe(csscomb('csscomb'))
        .pipe(gulp.dest('css/bemit/'));
});

give me this error: Error: Configuration file not found: csscomb.

I also tried with the two other provided config, 'yandex' and 'zen', but I got the same error. I also added the .json extension to be sure, but same result. I checked in the node_modules/csscomb/config/ folder if the 3 JSON files were here, and yes they are.

The bare function csscomb() works by the way.

The doc says:

You can also specify a pre-defined configuration. Ex.: csscomb('zen')

So I don't understand the problem.

Can you help me, or provide a fix?

JonGarbayo avatar Apr 09 '18 11:04 JonGarbayo