-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
75 lines (66 loc) · 2.54 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
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix
// CSS
.styles([
'resources/plugins/bootstrap/css/bootstrap.min.css',
'resources/css/app.css',
'resources/sass/main.css',
'resources/sass/dashmix/themes/xsmooth.css',
'resources/plugins/flatpickr/flatpickr.min.css',
// 'resources/plugins/select2/select2.min.css',
// 'resources/plugins/select2/select2-bootstrap-5-theme.min.css'
], 'public/css/app.css')
.copy([
'resources/plugins/bootstrap/css/bootstrap.min.css.map',
'resources/sass/dashmix/themes/xsmooth.css.map',
'resources/plugins/datatables/datatables.css',
'resources/plugins/datatables/datatables.min.css',
], 'public/css')
.copy('resources/plugins/ckeditor5/sample/styles.css', 'public/css/ckeditor.css')
// JS
.js([
// 'resources/plugins/jquery/jquery-3.6.0.min.js',
// 'resources/plugins/bootstrap/js/bootstrap.bundle.min.js',
'resources/js/app.js',
'resources/js/dashmix/app.js',
'resources/plugins/pusher/pusher.min.js',
'resources/plugins/flatpickr/flatpickr.min.js',
'resources/plugins/flatpickr/l10n/ru.js',
// 'resources/plugins/select2/select2.full.min.js',
// 'resources/plugins/select2/i18n/ru.js',
], 'public/js/app.js')
.copy([
'resources/plugins/bootstrap/js/bootstrap.bundle.min.js.map',
'resources/plugins/jquery/jquery-3.6.0.min.map',
'resources/plugins/datatables/datatables.js',
'resources/plugins/datatables/datatables.min.js',
'resources/plugins/ckeditor5/build/ckeditor.js',
'resources/plugins/ckeditor5/build/ckeditor.js.map',
], 'public/js')
.copyDirectory([
'resources/js/dashmix/modules'
], 'public/js/modules')
// Media
.copyDirectory('resources/img/photos', 'public/media/photos')
// Данные
.copyDirectory('database/data', 'public/uploads/migrations')
.copyDirectory('resources/assets', 'public/uploads/assets')
// Разное
.copy('resources/plugins/datatables/lang/ru/datatables.json', 'public/lang/ru/datatables.json')
// Tools
.browserSync('localhost:8000')
//.disableNotifications()
// Options
.options({
processCssUrls: true
});