S
S
Sergey Goryachev2017-03-25 23:30:18
css
Sergey Goryachev, 2017-03-25 23:30:18

What is wrong with gulp task?

I don't understand what's wrong? Why is the third way not processed?'assets/styles/**/*.scss'

gulp.task('sass', function(){
  return gulp.src([
    '!assets/styles/**/_*.scss',
    'assets/styles/all.scss',
    'assets/styles/**/*.scss'
  ])
  .pipe(sass().on('error', sass.logError))
  .pipe(sourcemaps.init())
  .pipe(sourcemaps.write('.'))
  .pipe(gulp.dest(path.join(content_path, 'css/')));
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-03-26
@webirus

There are too many patterns, one will be enough:
'assets/styles/**/[^_]*.scss'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question