-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
42 lines (37 loc) · 1.57 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
const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
require('laravel-elixir-vueify');
/*
|--------------------------------------------------------------------------
| 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 your application as well as publishing vendor resources.
|
*/
elixir(function(mix){
mix.styles([
'resources/assets/css/landing.css'
], 'public/css/login.css').
styles([
'resources/assets/css/Views/main.css',
], 'public/css/main.css').
browserify('app.js').
webpack([
'resources/assets/js/main.js'
], 'public/js/dist/main.js').
copy('node_modules/admin-lte/dist', 'public/js/dist/AdminLTE').
copy('node_modules/bootstrap/dist', 'public/js/dist/Bootstrap').
copy('node_modules/font-awesome/css', 'public/js/dist/Font-Awesome/css').
copy('node_modules/font-awesome/fonts', 'public/js/dist/Font-Awesome/fonts').
copy('node_modules/ionicons/dist/css', 'public/js/dist/Ionicons/css').
copy('node_modules/jquery/dist', 'public/js/dist/jQuery/dist').
copy('node_modules/datatables.net-bs', 'public/js/dist/DataTables').
copy('node_modules/bootstrap-checkbox/dist', 'public/js/dist/Bootstrap-Checkbox').
copy('node_modules/bootstrap-datepicker/dist', 'public/js/dist/Bootstrap-Datepicker').
webpack([
'resources/assets/js/main.js'
], 'public/js/dist/main.js');
});