blob: d825a15242f67392984be59e3d91e18bbd8f1c04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Gulp.js configuration
var gulp = require('gulp'),
watch = require('gulp-watch'),
postcss = require('gulp-postcss');
// apply PostCSS plugins
gulp.task('css', function() {
return gulp.src('src/style.min.css')
.pipe(postcss([
require('autoprefixer')({}),
require('cssnano'),
require('lost'),
require('postcss-font-magician')({protocol: 'https:'}),
require('postcss-simple-vars')
]))
.pipe(gulp.dest('dest'));
});
gulp.task('default', ['css', 'watch']);
gulp.task('watch', function() {
gulp.watch('src/main.css', ['css'])
});
|