V
V
Vasyl Boyko2016-04-14 22:18:40
css
Vasyl Boyko, 2016-04-14 22:18:40

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

1 answer(s)
A
Alexey, 2016-04-14
@ferdasfarmazone

From what I see - rename('bundle.min.css') - app/css/bundle.css is renamed to app/css/bundle.min.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question