Solved

the wild card doesn't work in gulp function

Posted on 2016-08-01
1
65 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 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now