TypeError: glob pattern string required

前端 未结 1 1242
一生所求
一生所求 2021-02-14 23:47

I\'m trying to compile sass using gulp-ruby-sass but I\'m getting TypeError: glob pattern string required.

This is what my g

相关标签:
1条回答
  • 2021-02-15 00:01

    Looking at the docs, it doesn't seem like you're supposed to pipe into gulp-ruby-sass, but rather call it directly like that :

    gulp.task('styles', function () {
        return sass(paths.sassSrcPath, {
                style: 'compressed',
                loadPath: [paths.sassImportsPath]
            })
            .pipe(gulp.dest(paths.sassDestPath));
    });
    
    0 讨论(0)
提交回复
热议问题