-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
35 lines (30 loc) · 914 Bytes
/
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
const gulp = require('gulp'),
gutil = require('gulp-util'),
uglify = require('gulp-uglify'),
favicons = require('gulp-favicons'),
shell = require('gulp-shell');
gulp.task('imagemin', function() {
gulp.src('public/assets/images/*')
.pipe(imagemin())
.pipe(gulp.dest('public/assets/images'));
});
gulp.task('favicons', function() {
gulp.src('public/assets/icons/favicon.png')
.pipe(favicons({
background: '#fff',
path: '/assets/icons',
html: 'resources/views/app/inc/favicons.blade.php',
replace: true
}))
.on('error', gutil.log)
.pipe(gulp.dest('public/assets/icons'));
});
gulp.task('default', shell.task([
'npm run dev'
]));
gulp.task('watch', shell.task([
'npm run watch'
]));
gulp.task('production', shell.task([
'npm run production'
]));