-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
44 lines (41 loc) · 2.4 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
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')
.sass('resources/sass/app.scss', 'public/css')
.styles("node_modules/admin-lte/dist/css/adminlte.min.css", "public/css/adminLTE/main.css")
.styles("resources/css/custom.css", 'public/css/custom.css')
.styles("node_modules/admin-lte/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css", "public/css/sweetalert2/sweetalert.css")
.styles(
[
"node_modules/admin-lte/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css",
"node_modules/admin-lte/plugins/datatables-responsive/css/responsive.bootstrap4.min.css",
],
"public/css/datatable/dataTable.css"
)
.styles("node_modules/admin-lte/plugins/icheck-bootstrap/icheck-bootstrap.min.css", "public/css/icheck/icheck.css")
.scripts("node_modules/admin-lte/plugins/select2/css/select2.min.css", "public/css/select2/select2.css")
.scripts("node_modules/admin-lte/dist/js/adminlte.min.js", "public/js/adminLTE/main.js")
.scripts(
[
"node_modules/admin-lte/plugins/datatables/jquery.dataTables.min.js",
"node_modules/admin-lte/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js",
"node_modules/admin-lte/plugins/datatables-responsive/js/dataTables.responsive.min.js",
"node_modules/admin-lte/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"
],
"public/js/datatable/dataTable.js"
)
.scripts("node_modules/admin-lte/plugins/sweetalert2/sweetalert2.all.min.js", "public/js/sweetalert2/sweetalert.js")
.scripts("node_modules/admin-lte/plugins/select2/js/select2.full.min.js", "public/js/select2/select2.js")
// .copy("node_modules/admin-lte/plugins/fontawesome-free", "public/plugins/fontawesome-free")
// .copy("node_modules/admin-lte/plugins/toastr", "public/plugins/toastr")
// .copy("node_modules/bootstrap-timepicker/js/bootstrap-timepicker.min.js", "js/bootstrap-timepicker/bootstrap-timepicker.js")
.version();