c# - Using gulp-sass-glob in Visual Studio -


in visual studio (task runner explorer), trying use gulp-sass-glob in scss:

gulpfile.js

var gulp = require('gulp'),   sass = require('gulp-sass'),   sassglob = require('gulp-sass-glob');  gulp.task('css', function () {   return gulp.src('./gulp/scss/**/*.scss')     .pipe(sassglob())     .pipe(sourcemaps.init())     .pipe(sass({ outputstyle: 'compressed' }))     .pipe(sourcemaps.write('.'))     .pipe(gulp.dest('./css')); }); 

site.scss

@import "modules/**/*.*"; 

but in task runner explorer, following error:

error: file import not found or unreadable: modules/**/*.* parent style sheet: c:/users/.../scss/site.scss   on line 95 of gulp/scss/site.scss   >> @import "modules/**/*.*"; 

does know how fix error or if achievable when using scss , gulp in visual studio?

gulp-sass-glob uses glob package path globbing. documentation has say **:

** if "globstar" alone in path portion, matches 0 or more directories , subdirectories searching matches.

notice bolded part. means ** has special meaning when thing between 2 slashes /.

try following in site.scss:

@import "modules/**/*.*"; 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -