-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
35 lines (32 loc) · 1.06 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
var elixir = require('laravel-elixir');
var gulp = require('gulp');
var less = require ('gulp-less');
var path = require('path');
var minifycss = require('gulp-minify-css');
var autoprefix = require('gulp-autoprefixer');
var uglify = require('gulp-uglify');
var minifyhtml = require('gulp-minify-html');
gulp.task('callbackCSS', function () {
return gulp.src('./resources/assets/less/callback/**/*.less')
.pipe(less({
paths: [ path.join(__dirname, 'less', 'includes') ]
}))
.pipe(autoprefix())
.pipe(minifycss())
.pipe(gulp.dest('./public/css/callback'))
});
gulp.task('callbackJS',function(){
gulp.src('./resources/assets/js/callback/**/*.js')
.pipe(uglify())
.pipe(gulp.dest('./public/js/callback'));
});
gulp.task('callbackHTML',function(){
gulp.src('./resources/assets/html/callback/**/*.html')
.pipe(minifyhtml())
.pipe(gulp.dest('./public/html/callback'));
});
gulp.task('default',function(){
gulp.run('callbackCSS');
gulp.run('callbackHTML');
gulp.run('callbackJS');
});