-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
executable file
·123 lines (105 loc) · 4.03 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
let mix = require('laravel-mix');
mix.webpackConfig({ node: {
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
}});
const webpack = require('webpack');
mix.webpackConfig({
plugins: [
new webpack.ProvidePlugin({
'$': 'jquery',
'jQuery': 'jquery',
'window.jQuery': 'jquery',
}),
]
});
/*
|--------------------------------------------------------------------------
| 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.scripts([
'public/theme/assets/js/dashforge.js',
'public/theme/assets/js/dashforge.filemgr.js',
'public/theme/assets/js/custom-file-manager-page.js'
], 'public/assets/js/mix/ged.js');
mix.scripts([
'public/assets/js/file-manager.js',
'public/assets/js/scanner-wizard.js'
], 'public/assets/js/mix/documents.js');
mix.babel([
'public/assets/js/scanner.js',
], 'public/assets/js/mix/scanner.js');
mix.scripts([
'public/theme/lib/jquery/jquery.min.js',
'public/theme/lib/jqueryui/jquery-ui.min.js',
'public/theme/lib/bootstrap/js/bootstrap.bundle.min.js',
'public/theme/lib/feather-icons/feather.min.js',
'public/theme/lib/perfect-scrollbar/perfect-scrollbar.min.js',
'public/theme/lib/jquery.flot/jquery.flot.js',
'public/theme/lib/jquery.flot/jquery.flot.stack.js',
'theme/lib/jquery.flot/jquery.flot.resize.js',
'public/assets/js/popper.min.js',
'public/assets/js/bootstrap.min.js',
'public/assets/js/moment.min.js',
'public/theme/lib/moment/locale/fr.js',
'public/assets/js/sweetalert.min.js',
'public/assets/js/delete.handler.js',
'public/assets/plugins/js-cookie/js.cookie.js',
'public/vendor/jsvalidation/js/jsvalidation.js',
'public/assets/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js',
'public/theme/lib/typeahead.js/typeahead.bundle.min.js',
'public/theme/lib/dropify/dist/js/dropify.min.js',
'public/theme/lib/flatpicker/flatpickr.js',
'public/theme/lib/flatpicker/fr.js',
'public/theme/lib/flatpicker/ar.js',
'public/theme/lib/select2/js/select2.min.js',
'public/assets/plugins/croppie/croppie.js',
],'public/assets/js/mix/vendors.js');
mix.styles([
'public/theme/lib/@fortawesome/fontawesome-free/css/all.min.css',
'public/theme/lib/ionicons/css/ionicons.min.css',
'public/theme/lib/jqvmap/jqvmap.min.css',
'public/assets/css/fontawesome-all.min.css',
'public/assets/plugins/bootstrap-datepicker/bootstrap-datepicker.min.css',
'public/theme/assets/css/dashforge.filemgr.css',
'public/theme/assets/css/dashforge.css',
'public/theme/assets/css/dashforge.dashboard.css',
'public/theme/assets/css/skin.cool.css',
'public/theme/assets/css/skin.deepblue.css',
'public/assets/plugins/croppie/croppie.css',
'public/theme/lib/dropify/dist/css/dropify.min.css',
'public/theme/lib/flatpicker/flatpickr.min.css',
'public/theme/lib/select2/css/select2.min.css'
], 'public/assets/css/vendor.css');
mix.sass('resources/sass/app.scss', 'public/assets/css');
if (mix.inProduction()) {
mix.version();
}
/*
mix.scripts([
'public/assets/js/popper.min.js',
'public/assets/js/bootstrap.min.js',
'public/assets/js/moment.min.js',
'public/assets/js/sweetalert.min.js',
'public/assets/js/delete.handler.js',
'public/assets/plugins/js-cookie/js.cookie.js',
'public/vendor/jsvalidation/js/jsvalidation.js',
'public/assets/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js',
'public/assets/plugins/croppie/croppie.js'
], 'public/assets/js/vendor.js');
*/
/*
mix.styles([
'public/assets/css/fontawesome-all.min.css',
'public/assets/plugins/bootstrap-datepicker/bootstrap-datepicker.min.css',
'public/assets/plugins/croppie/croppie.css',
], 'public/assets/css/vendor.css');
*/