-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·50 lines (46 loc) · 1.7 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
var elixir = require('laravel-elixir');
var gulp = require('gulp');
var minifyHTML = require('gulp-minify-html');
var paths = {
'bower': './vendor/bower_components/',
'node': './node_modules/',
}
var libs = {
'bootstrap': paths.node + 'bootstrap-sass/assets/',
'isotope': paths.bower + 'isotope/dist/',
'superslides': paths.bower + 'superslides/dist/',
'chartjs': paths.bower + 'Chart.js/',
'greensock': paths.bower + 'gsap/src/uncompressed/'
}
gulp.task('minify-html', function() {
var opts = {
conditionals: true,
spare:true
};
return gulp.src('./resources/views/static/*.php')
.pipe(minifyHTML(opts))
.pipe(gulp.dest('./public/'));
});
elixir(function(mix) {
mix.sass(['app.scss'], 'public/css/app.min.css')
// mix.sass([libs.superslides + 'stylesheets/superslides.css', 'app.scss'], 'public/css/app.min.css')
// .copy(libs.bootstrap + 'fonts/bootstrap/**', 'public/fonts')
.scripts(
[
// libs.bootstrap + 'javascripts/bootstrap/modal.js',
libs.bootstrap + 'javascripts/bootstrap/collapse.js',
libs.bootstrap + 'javascripts/bootstrap/transition.js',
// libs.bootstrap + 'javascripts/bootstrap/tab.js',
// libs.superslides + 'jquery.superslides.js',
libs.isotope + 'isotope.pkgd.js',
libs.chartjs + 'Chart.js',
libs.greensock + 'TweenLite.js',
libs.greensock + 'easing/EasePack.js',
libs.greensock + 'plugins/ScrollToPlugin.js',
'./resources/assets/js/app.js'
],
'public/js/app.min.js',
'./'
)
.task('minify-html');
});