-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgulpfile.js
40 lines (31 loc) · 1.16 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
var dir, elixir = require('laravel-elixir');
require('laravel-elixir-vue');
/*
|--------------------------------------------------------------------------
| 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.
|
*/
dir = require('./paths.js')
elixir.config.sourcemaps = false
elixir(function(mix) {
mix.copy(dir.build.js+'/html5shiv.js', dir.asset.js+'/html5shiv.js')
.copy(dir.build.css, dir.asset.css)
.copy(dir.build.font, dir.asset.font)
.copy(dir.build.img, dir.asset.img)
.copy(dir.build.vendor+'/delta/theme/images', dir.asset.css+'/images')
mix.less('orchestra.less', dir.asset.css+'/orchestra.css', dir.build.less, {
paths: [dir.vendor]
})
mix.webpack('orchestra.js', dir.asset.js+'/orchestra.js', dir.js)
mix.styles([
'vendor.css'
], dir.asset.css+'/vendor.css', dir.build.vendor)
mix.scripts([
'vendor.js'
], dir.asset.js+'/vendor.js', dir.build.vendor)
});