-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
94 lines (88 loc) · 4.79 KB
/
webpack.mix.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js/app.js')
.sass('resources/assets/sass/app.scss', 'public/css/app.css');
mix.scripts([
'resources/assets/plugins/jQuery/jquery-3.3.1.min.js',
// 'resources/assets/plugins/jQuery/jQuery-2.1.4.min.js',
'resources/assets/plugins/moment/moment.js',
'resources/assets/plugins/bootstrap/js/bootstrap.js',
'resources/assets/plugins/datatables/jquery.dataTables.js',
'resources/assets/plugins/datatables/dataTables.bootstrap.js',
'resources/assets/plugins/datatables/buttons/dataTables.buttons.js',
'resources/assets/plugins/datatables/buttons/buttons.bootstrap.min.js',
'resources/assets/plugins/datatables/buttons/jszip.min.js',
'resources/assets/plugins/datatables/buttons/pdfmake.min.js',
'resources/assets/plugins/datatables/buttons/vfs_fonts.js',
'resources/assets/plugins/datatables/buttons/buttons.html5.js',
'resources/assets/plugins/datatables/buttons/buttons.print.js',
'resources/assets/plugins/validator/validator.min.js',
'resources/assets/plugins/select2/select2.full.js',
'resources/assets/plugins/summernote/summernote.min.js',
'resources/assets/plugins/iCheck/icheck.min.js',
'resources/assets/plugins/fontawesome-iconpicker/iconpicker.min.js',
'resources/assets/plugins/bootstrap-select/bootstrap-select.js',
'resources/assets/plugins/datepicker/bootstrap-datepicker.js',
'resources/assets/plugins/datetimepicker/bootstrap-datetimepicker.min.js',
'resources/assets/plugins/colorpicker/bootstrap-colorpicker.min.js',
'resources/assets/plugins/dragNdrop/RowSorter.js',
'resources/assets/dist/js/app.min.js',
'resources/assets/plugins/jquery-confirm/js/jquery-confirm.js',
'resources/assets/plugins/notie/notie.js',
], 'public/js/vendor.js')
.styles([
// 'resources/assets/bootstrap/css/bootstrap.min.css',
'resources/assets/plugins/datatables/dataTables.bootstrap.css',
'resources/assets/plugins/datatables/buttons/buttons.dataTables.min.css',
'resources/assets/plugins/datepicker/datepicker3.css',
'resources/assets/plugins/fontawesome-iconpicker/iconpicker.min.css',
'resources/assets/plugins/datetimepicker/bootstrap-datetimepicker.css',
'resources/assets/plugins/bootstrap-select/bootstrap-select.css',
'resources/assets/plugins/iCheck/flat/blue.css',
'resources/assets/plugins/iCheck/flat/pink.css',
'resources/assets/plugins/iCheck/line/pink.css',
'resources/assets/plugins/iCheck/minimal/blue.css',
'resources/assets/plugins/colorpicker/bootstrap-colorpicker.min.css',
'resources/assets/plugins/select2/select2.min.css',
'resources/assets/plugins/summernote/summernote.css',
'resources/assets/plugins/jquery-confirm/css/jquery-confirm.css',
'resources/assets/plugins/handle-btn/handle-btn.css',
'resources/assets/dist/css/style.css',
'resources/assets/dist/css/skins.css',
], 'public/css/vendor.css');
// mix.scripts([
// 'resources/assets/temp/app.js',
// 'resources/assets/temp/all.js',
// ], 'public/js/app.js')
// .styles([
// 'resources/assets/temp/app.css',
// 'resources/assets/temp/all.css',
// ], 'public/css/app.css');
// kartik-v-bootstrap-fileinput
mix.scripts([
'resources/assets/plugins/kartik-v-bootstrap-fileinput/js/plugins/sortable.min.js',
'resources/assets/plugins/kartik-v-bootstrap-fileinput/js/plugins/piexif.min.js',
'resources/assets/plugins/kartik-v-bootstrap-fileinput/js/fileinput.min.js',
], 'public/js/fileinput.js')
.styles([
'resources/assets/plugins/kartik-v-bootstrap-fileinput/css/fileinput.min.css',
], 'public/css/fileinput.css');
//END kartik-v-bootstrap-fileinput
// Copy some assets file for iCheck plugin
mix.copy('resources/assets/plugins/iCheck/line/line.png', 'public/css/line.png')
.copy('resources/assets/plugins/iCheck/line/line@2x.png', 'public/css/line@2x.png')
.copy('resources/assets/plugins/iCheck/minimal/blue.png', 'public/css/blue.png')
.copy('resources/assets/plugins/iCheck/minimal/blue@2x.png', 'public/css/blue@2x.png')
.copy('resources/assets/plugins/iCheck/flat/flat.png', 'public/css/flat.png')
.copy('resources/assets/plugins/iCheck/flat/flat@2x.png', 'public/css/flat@2x.png')
.copy('resources/assets/plugins/iCheck/flat/pink.png', 'public/css/pink.png')
.copy('resources/assets/plugins/iCheck/flat/pink@2x.png', 'public/css/pink@2x.png');