?
Solved

the wild card doesn't work in gulp function

Posted on 2016-08-01
1
Medium Priority
?
114 Views
Last Modified: 2016-08-15
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'))
});
0
Comment
Question by:Jason Yu
1 Comment
 
LVL 27

Accepted Solution

by:
BigRat earned 2000 total points
ID: 41739358
The usual thing is that either the directory structure is not what you expect or that the context directory is not where "app" resides.

You can try gulp-print (https://www.npmjs.com/package/gulp-print) which might be helpful, but I suspect that you're going to have to publish the complete gulp file in case there's something else.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question