-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
57 lines (54 loc) · 1.99 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
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")
.sourceMaps(true, "source-maps")
.browserSync({
proxy: "127.0.0.1:8000",
port: 3100,
ghostMode: false,
notify: false
});
// Copy plugin files to public folder
mix.copyDirectory("node_modules/@mdi", "public/assets/plugins/@mdi")
// .copyDirectory('node_modules/perfect-scrollbar/dist/perfect-scrollbar.min.js', 'public/assets/plugins/perfect-scrollbar/perfect-scrollbar.min.js')
.copyDirectory(
[
"node_modules/perfect-scrollbar/dist/perfect-scrollbar.min.js",
"node_modules/perfect-scrollbar/css/perfect-scrollbar.css"
],
"public/assets/plugins/perfect-scrollbar"
)
.copyDirectory(
"node_modules/bootstrap-datepicker/dist",
"public/assets/plugins/bootstrap-datepicker"
)
.copyDirectory(
"node_modules/tempusdominus-bootstrap-4/build",
"public/assets/plugins/tempusdominus-bootstrap-4"
)
.copyDirectory(
"node_modules/moment/moment.js",
"public/assets/plugins/moment/moment.js"
)
.copyDirectory(
"node_modules/chart.js/dist/Chart.min.js",
"public/assets/plugins/chartjs/chart.min.js"
)
.copyDirectory(
"node_modules/jquery-sparkline/jquery.sparkline.min.js",
"public/assets/plugins/jquery-sparkline/jquery.sparkline.min.js"
)
.copyDirectory(
"node_modules/jquery.easing/jquery.easing.min.js",
"public/assets/plugins/jquery.easing/jquery.easing.min.js"
);