-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
94 lines (74 loc) · 2.37 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
const mix = require('laravel-mix');
require('laravel-mix-purgecss');
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
]);
mix.copyDirectory('resources/images', 'public/images');
// Books
mix.combine([
'resources/css/bootstrap.css',
'resources/css/books.css',
],'public/css/books.css').purgeCss();
// Jquery
mix.combine([
'resources/plugins/jquery/jquery-3.6.0.js',
],'public/plugins/jquery/plugin.min.js');
// Modernizr
mix.combine([
'resources/plugins/modernizr/modernizr.js',
],'public/plugins/modernizr/plugin.min.js');
// Bookblock
mix.combine([
'resources/plugins/bookblock/bookblock.js',
'resources/plugins/bookblock/custom.js',
],'public/plugins/bookblock/plugin.min.js');
mix.combine([
'resources/plugins/bookblock/bookblock.css',
],'public/plugins/bookblock/plugin.min.css').purgeCss();
// Howler
mix.combine([
'resources/plugins/howler/howler.js',
],'public/plugins/howler/plugin.min.js');
// Lazy
mix.combine([
'resources/plugins/lazy/lazy.js',
'resources/plugins/lazy/jquery.lazy.plugins.js',
],'public/plugins/lazy/plugin.min.js');
// Datatables
mix.combine([
'resources/plugins/datatables/datatables.js',
'resources/plugins/datatables/tr.js',
'resources/plugins/datatables/make.js',
],'public/plugins/datatables/plugin.min.js');
mix.combine([
'resources/plugins/datatables/datatables.css',
],'public/plugins/datatables/plugin.min.css').purgeCss();
mix.copyDirectory('resources/plugins/datatables/images', 'public/plugins/datatables/images');
// Sweetalert 2
mix.combine([
'resources/plugins/sweetalert2/sweetalert2.js',
'resources/plugins/sweetalert2/make.js',
],'public/plugins/sweetalert2/plugin.min.js');
// Toastr
mix.combine([
'resources/plugins/toastr/toastr.js',
],'public/plugins/toastr/plugin.min.js');
mix.combine([
'resources/plugins/toastr/toastr.css',
],'public/plugins/toastr/plugin.min.css').purgeCss();
// Dropzone
mix.combine([
'resources/plugins/dropzone/dropzone.js',
],'public/plugins/dropzone/plugin.min.js');
mix.combine([
'resources/plugins/dropzone/dropzone.css',
],'public/plugins/dropzone/plugin.min.css').purgeCss();
// Jquery
mix.combine([
'resources/plugins/kCode/k-code.js',
],'public/plugins/kCode/plugin.min.js');
if (mix.inProduction()) {
mix.version();
}