This repository was archived by the owner on Oct 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathgulpfile.js
More file actions
50 lines (42 loc) · 1.37 KB
/
gulpfile.js
File metadata and controls
50 lines (42 loc) · 1.37 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
49
50
const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
/*
|--------------------------------------------------------------------------
| 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.
|
*/
var del = require('del');
elixir.extend('sourcemaps', false);
elixir.extend('remove', function(path) {
new elixir.Task('remove', function() {
del(path);
});
});
elixir(mix => {
mix.less('./node_modules/slick-carousel/slick/slick.less');
mix.scripts('./node_modules/slick-carousel/slick/slick.min.js');
mix.styles('./node_modules/select2/dist/css/select2.min.css');
mix.scripts('./node_modules/select2/dist/js/select2.full.min.js');
mix.styles('font.css');
mix.styles(['dropzone.css', 'oneui.css', 'modern.css', 'app.css', 'sweetalert2.css'], 'public/css/app.css');
//mix.styles(['app.css'], 'public/css/app.css');
mix.scripts('oneui.js');
mix.webpack('app.js','public/js','resources/assets/js',{
module: {
loaders: [
{
test: /\.json$/,
loader: 'json-loader'
}
]
}
});
mix.webpack('base/chosen.js');
mix.webpack('base/jquery.js');
mix.webpack('base/vue.js');
});