Answer the question
In order to leave comments, you need to log in
How to make gulp compress only uncompressed files?
there is such a task
gulp.task('libs', function () {
gulp.src('./src/libs/css/**/*.css')
.pipe(cssnano())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(dest_path + '/css'))
.pipe(browserSync.reload({stream: true}))
gulp.src('./src/libs/js/**/*.js')
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(dest_path + '/js'))
.pipe(browserSync.reload({stream: true}))
});
Answer the question
In order to leave comments, you need to log in
gulp.src('./src/libs/js/**/*.js', '!./src/libs/js/**/*.min.js')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question