-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
39 lines (33 loc) · 1.17 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var concatCss = require('gulp-concat-css');
var source = './src/DomiGestion';
var destination = './web';
gulp.task('copy', function() {
return gulp.src('./app/Resources/public/css/*.css')
.pipe(plugins.csscomb()) //Format CSS coding style
.pipe(plugins.cssbeautify({indent: ' '})) //Reindent and reformat CSS
.pipe(plugins.autoprefixer()) //Prefix CSS with webkit....
.pipe(gulp.dest(destination + '/assets/css'));
})
gulp.task('css', function () {
return gulp.src(source + '/assets/css/*.css')
.pipe(concatCss('/assets/css/style.css'))
.pipe(gulp.dest(destination + '/assets/css/'));
});
gulp.task('minify', function () {
return gulp.src(source + '/assets/css/*.css')
.pipe(plugins.csso())
.pipe(plugins.rename({
suffix: '.min'
}))
.pipe(gulp.dest(destination + '/assets/css/'));
});
gulp.task('browserSync', function() {
browserSync.init({
proxy: "http://domigestion.dev/app_dev.php"
});
});
gulp.task('watch', ['browserSync', 'compass'], function() {
gulp.watch('sass/*.scss', ['compass']);
});