-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
55 lines (48 loc) · 1.9 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var imagemin = require('gulp-imagemin');
var pngquant = require('imagemin-pngquant');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix.copy(
'bower_components/jquery-validation/dist/jquery.validate.js',
'public/assets/js/vendor/jquery-validation/jquery.validate.js'
);
mix.copy(
'bower_components/jquery-validation/dist/additional-methods.js',
'public/assets/js/vendor/jquery-validation/additional-methods.js'
);
mix.copy(
'bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
'public/assets/js/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.js'
);
mix.copy(
'bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
'public/assets/css/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.css'
);
mix.copy(
'bower_components/moment/min/moment-with-locales.min.js',
'public/assets/js/vendor/moment/moment-with-locales.min.js'
);
mix.scripts(['app.js'], 'public/assets/js/app.js');
mix.sass(['app.scss'], 'public/assets/css');
mix.task('images');
});
gulp.task('images', function () {
return gulp.src('resources/assets/images/*')
.pipe(imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}],
use: [pngquant()]
}))
.pipe(gulp.dest('public/assets/img'));
});