を使用してgulp-ruby-sass
をコンパイルしようとしていますが、TypeError: glob pattern string required
を取得しています。TypeError:グロブパターンの文字列が必要です
これは私のgulpfile.js
は、次のようになります。ここでは
var gulp = require('gulp'),
sass = require('gulp-ruby-sass');
var paths = {
sassSrcPath: ['Content/css/**/*.scss'],
sassDestPath: ['build/css/'],
sassImportsPath: ['Content/styleguide/']
};
// Styles Task
gulp.task('styles', function() {
gulp.src(paths.sassSrcPath)
.pipe(sass({
style: 'compressed',
loadPath: [paths.sassImportsPath]
}))
.pipe(gulp.dest(paths.sassDestPath));
});
// Watch Task
gulp.task('watch', function() {
gulp.watch(paths.sassSrcPath, ['styles']);
});
gulp.task('default', ['styles', 'watch']);
は私のフォルダ構造です:
├── Content
│ ├── css
│ │ ├── partials
│ │ │ └─_icons.scss
│ │ ├── main.css.scss
│ │ └── styleguide.css.scss
│ └── styleguide
│ ├── css
│ │ └─ vendor
│ │ └─ // Bunch of other folders that contain .sass files
│ └── // Other .sass files
└── gulpfile.js
私は一口ために新しい新鮮だと私はうなり声を使用のいずれかので、恐れ入りますがされていません私が些細な間違いをした場合。
後も直接SASSを実行し、また、このsassDestPath:['build/css /']はエラー "Error:Invalid output folder"を生成するので、 'build/css /'に変更して問題を解決します。 –