Answer the question
In order to leave comments, you need to log in
Why is only one minified css file created after running gulp?
Why is only one minified css file created after running gulp?
var gulp = require('gulp'),
concatCss = require('gulp-concat-css'),
rename = require('gulp-rename'),
notify = require('gulp-notify'),
minifyCSS = require(' gulp-minify-css');
gulp.task('default', function () {
return gulp.src('css/*.css')
.pipe(concatCss('bundle.css'))
.pipe(minifyCSS())
.pipe(rename(' bundle.min.css'))
.pipe(gulp.dest('app/css'))
.pipe(notify('Done!'));
});
gulp.task('watch', function () {
gulp.watch('css/*.css', ['default'
after running gallp, only one file is created - app/css/bundle.min.css
and I understand that there should be one more file - app/css/bundle.css
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question