Gulp TypeError: Arguments to path.join must be strings

前端 未结 3 1881
说谎
说谎 2020-12-02 12:04

I have i problem with gulp-ruby-sass. When i try to run the watch task and change some .sass files it occurs error:

TypeError: Arguments to path.joi         


        
3条回答
  •  不知归路
    2020-12-02 12:39

    gulp-ruby-sass syntax changes in version 1.0.0. See this issue:

    https://github.com/sindresorhus/gulp-ruby-sass/issues/191

    New docs are currently here:

    https://github.com/sindresorhus/gulp-ruby-sass/tree/rw/1.0#gulp-ruby-sass-is-a-gulp-source-adapter

    This should compile sass files in specified directory:

    gulp.task('sass', function() {
        return sass('sass/')
            .pipe(gulp.dest('./css'));
    });
    

提交回复
热议问题