-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
36 lines (31 loc) · 1 KB
/
gulpfile.js
File metadata and controls
36 lines (31 loc) · 1 KB
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
const gulp = require('gulp'),
gutil = require('gulp-util'),
uglify = require('gulp-uglify'),
favicons = require('gulp-favicons'),
shell = require('gulp-shell'),
tingpng = require('gulp-tinypng');
gulp.task('favicons', function() {
gulp.src('assets/images/icons/favicon.png')
.pipe(favicons({
background: '#fff',
path: '/assets/images/icons',
html: 'resources/views/app/inc/favicons.blade.php',
replace: true
}))
.on('error', gutil.log)
.pipe(gulp.dest('assets/images/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'
]));
gulp.task('tinypng', function () {
gulp.src(['assets/images/**/*.png', '!assets/images/icons/*.png'])
.pipe(tingpng('OmkME2nyIucvXSZ8kwUWC8uyEJ6nZ6FV'))
.pipe(gulp.dest('assets/images'));
});