?
Solved

the wild card doesn't work in gulp function

Posted on 2016-08-01
1
Medium Priority
?
102 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 Month11 days, 14 hours left to enroll

752 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