This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwebpack.mix.js
76 lines (64 loc) · 2.36 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
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');
// Combine Admin Css Vendor
mix.combine([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/font-awesome/css/font-awesome.min.css',
'node_modules/ionicons/dist/css/ionicons.min.css',
'node_modules/jquery-datetimepicker/build/jquery.datetimepicker.min.css',
'node_modules/sweetalert2/dist/sweetalert2.min.css',
'node_modules/chosen-js/chosen.css',
'node_modules/datatables-all/media/css/dataTables.bootstrap.min.css',
'node_modules/admin-lte/dist/css/AdminLTE.min.css',
// 'node_modules/bootstrap-rtl/dist/css/bootstrap-rtl.min.css',
'node_modules/icheck/skins/square/blue.css',
'node_modules/admin-lte/dist/css/skins/_all-skins.min.css'
], 'public/css/admin-vendor.css');
// Combine Admin All CSS
mix.combine([
'public/css/admin-vendor.css',
'public/css/admin-custom.css',
], 'public/css/admin-all.css');
// Combine Admin JS Vendor
mix.combine([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js',
'node_modules/datatables-all/media/js/jquery.dataTables.min.js', // not sure
'node_modules/datatables-all/media/js/dataTables.bootstrap.js',
'node_modules/sweetalert2/dist/sweetalert2.min.js',
'node_modules/chosen-js/chosen.jquery.js',
'node_modules/icheck/icheck.min.js',
'node_modules/admin-lte/dist/js/app.min.js',
'node_modules/turbolinks/dist/turbolinks.js',
], 'public/js/admin-vendor.js');
// Combine Admin All CSS
mix.combine([
'public/js/admin-vendor.js',
'public/js/admin-custom.js',
], 'public/js/admin-all.js');
// Copy Fonts
/*mix.copy(
'node_modules/font-awesome/fonts',
'public/fonts'
);
// Copy images
mix.copy(
'node_modules/admin-lte/dist/img',
'public/img'
);
mix.copy(
'node_modules/ckeditor/',
'public/plugins/ckeditor'
);
*/