Avatar of Jason Yu
Jason Yu
Flag for United States of America asked on

the wild card doesn't work in gulp function

I have the following gulp script for conversting all .scss files from under app/scss/  to /app/css directory. I tried to use a single file name and it worked well.  Then, I switched to **/*.scss to try to catch all .scss files under the same directory. But it doesn't work. How could I trouble shoot for this error. I was following the gulp learning tutorial in this link: https://css-tricks.com/gulp-for-beginners/

Please help.

//for batch file converting from .scss to .css file
gulp.task('sass', function(){
  return gulp.src('app/scss/**/*.scss')
  .pipe(sass())  //Converts Sass documents to CSS documents with gulp-sass plug-in
  .pipe(gulp.dest('app/css'))
});
LinuxJavaScript

Avatar of undefined
Last Comment
BigRat

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
BigRat

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck