-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
83 lines (81 loc) · 4.42 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
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/js/app.js', 'public/js/init.js').vue()
.sass('resources/sass/app.scss', 'public/css/init.css')
.combine([
'public/js/init.js',
'resources/plugins/AdminLTE/plugins/pace/pace.min.js',
'resources/plugins/jquery-ui/jquery-ui.min.js',
'resources/plugins/bootstrap/js/bootstrap.min.js',
'resources/plugins/AdminLTE/plugins/select2/select2.full.min.js',
'resources/plugins/AdminLTE/plugins/datepicker/bootstrap-datepicker.min.js',
'resources/plugins/AdminLTE/plugins/DataTables/datatables.min.js',
'resources/plugins/AdminLTE/plugins/DataTables/pdfmake-0.1.32/pdfmake.min.js',
'resources/plugins/AdminLTE/plugins/DataTables/pdfmake-0.1.32/vfs_fonts.js',
'resources/plugins/jquery-validation-1.16.0/dist/jquery.validate.min.js',
'resources/plugins/jquery-validation-1.16.0/dist/additional-methods.min.js',
'resources/plugins/toastr/toastr.min.js',
'resources/plugins/bootstrap-fileinput/fileinput.min.js',
'resources/plugins/accounting.min.js',
'resources/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js',
'resources/plugins/AdminLTE/plugins/daterangepicker/daterangepicker.js',
'resources/plugins/mousetrap/mousetrap.min.js',
'resources/plugins/sweetalert/sweetalert.min.js',
'resources/plugins/bootstrap-tour/bootstrap-tour.min.js',
'resources/plugins/printThis.js',
'resources/plugins/AdminLTE/js/AdminLTE-app.js',
'resources/plugins/calculator/calculator.js',
'resources/plugins/dropzone/dropzone.js',
'resources/plugins/jquery.steps/jquery.steps.min.js',
'resources/plugins/fullcalendar/fullcalendar.min.js',
'resources/plugins/fullcalendar/locale-all.js',
'resources/plugins/bootstrap-colorpicker/bootstrap-colorpicker.min.js',
'resources/plugins/decimal.min.js',
'resources/plugins/jKanban/jKanbanBoard.js',
'node_modules/onscan.js/onscan.min.js',
'resources/plugins/jquery.top_scrollbar.js'
], 'public/js/vendor.js')
.combine([
'public/css/init.css',
'resources/plugins/AdminLTE/plugins/pace/pace.css',
'resources/plugins/jquery-ui/jquery-ui.min.css',
'resources/plugins/bootstrap/css/bootstrap.min.css',
'resources/plugins/ionicons/css/ionicons.min.css',
'resources/plugins/AdminLTE/plugins/select2/select2.min.css',
'resources/plugins/AdminLTE/css/AdminLTE.min.css',
'resources/plugins/AdminLTE/plugins/datepicker/bootstrap-datepicker.min.css',
'resources/plugins/AdminLTE/plugins/DataTables/datatables.min.css',
'resources/plugins/toastr/toastr.min.css',
'resources/plugins/bootstrap-fileinput/fileinput.min.css',
'resources/plugins/AdminLTE/css/skins/_all-skins.min.css',
'resources/plugins/AdminLTE/plugins/daterangepicker/daterangepicker.css',
'resources/plugins/bootstrap-tour/bootstrap-tour.min.css',
'resources/plugins/calculator/calculator.css',
'resources/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css',
'resources/plugins/dropzone/dropzone.min.css',
'resources/plugins/jquery.steps/jquery.steps.css',
'resources/plugins/custom.css',
'resources/plugins/fullcalendar/fullcalendar.min.css',
'resources/plugins/bootstrap-colorpicker/bootstrap-colorpicker.min.css',
'resources/plugins/jKanban/jKanbanBoard.css',
'resources/plugins/css-toggle-switch/toggle-switch.css'
], 'public/css/vendor.css')
.combine([
'resources/plugins/AdminLTE/css/AdminLTE.rtl.min.css',
'resources/plugins/bootstrap/css/bootstrap.rtl.min.css'
], 'public/css/rtl.css')
.copy('resources/plugins/bootstrap/fonts/glyphicons-halflings-regular.woff2', 'public/fonts/')
.copy('resources/plugins/bootstrap/fonts/glyphicons-halflings-regular.woff', 'public/fonts/')
.copy('resources/plugins/bootstrap/fonts/glyphicons-halflings-regular.ttf', 'public/fonts/')
.copy('resources/plugins/ionicons/fonts/ionicons.ttf', 'public/fonts/ionicons.ttf')
.copyDirectory('node_modules/tinymce/skins/', 'public/js/skins/')
.setResourceRoot('../');