Gulp.js
- 3 ответа
- 0 вопросов
1
Вклад в тег
var gulp = require('gulp');
var minifyCSS = require('gulp-minify-css');
var sourcemaps = require('gulp-sourcemaps');
gulp.task('minify-css', function() {
return gulp.src('./src/*.css')
.pipe(sourcemaps.init())
.pipe(minifyCSS())
.pipe(sourcemaps.write())
.pipe(gulp.dest('dist'));
});