-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
48 lines (34 loc) · 1.1 KB
/
gulpfile.js
File metadata and controls
48 lines (34 loc) · 1.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
37
38
39
40
41
42
43
44
45
46
47
48
var elixir = require('laravel-elixir');
elixir.config.sourcemaps = false;
var gulp = require('gulp');
elixir(function(mix) {
// compile sass file to css
mix.sass('resources/assets/sass/app.scss', 'resources/assets/css');
// combine all css files to one css file
mix.styles(
[
// destination where gulp should look for the cssfiles to combine
'css/app.css',
'bower/vendor/slick-carousel/slick/slick.css'
],
// destination where gulp should put the combined css file
'public/css/all.css',
// folder path for gulp to look for the files to combine
'resources/assets'
);
var bowerpath = 'bower/vendor';
mix.scripts (
[
// compile all jquery files to one files
bowerpath + '/jquery/dist/jquery.min.js',
// combile all foundation-sites js files to one file
bowerpath + '/foundation-sites/dist/js/foundation.min.js',
// compile all slick-carousel js files to one file
bowerpath + '/slick-carousel/slick/slick.min.js'
],
//destinatin where gulp should put the combined js file
'public/js/all.js',
//folder path for a gulp to look for a js file to combine
'resources/assets'
);
});