-
Notifications
You must be signed in to change notification settings - Fork 164
/
webpack.mix.js
68 lines (56 loc) · 2.32 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
let 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 your application, as well as bundling up your JS files.
|
*/
mix.scripts(
[
'node_modules/jquery/dist/jquery.min.js',
'node_modules/jquery-ui-dist/jquery-ui.min.js',
'node_modules/select2/dist/js/select2.min.js',
'node_modules/popper.js/dist/umd/popper.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/bootbox/dist/bootbox.min.js',
'node_modules/datatables.net/js/jquery.dataTables.min.js',
'node_modules/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
'node_modules/datatables.net-responsive/js/dataTables.responsive.min.js',
'node_modules/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
'node_modules/blueimp-file-upload/js/jquery.fileupload.js',
'node_modules/jquery-knob/dist/jquery.knob.min.js',
'node_modules/clipboard/dist/clipboard.min.js',
'node_modules/moment/moment.js',
'node_modules/ip-address/dist/ip-address-globals.js',
'public/js/ixp-manager.js',
// etc. etc.
],
'public/js/ixp-pack.js'
).version();
mix
.sass('resources/scss/tailwind.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [
require('tailwindcss')('./resources/tailwind.config.js')
]
});
mix.styles(
[
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
'node_modules/select2/dist/css/select2.min.css',
'node_modules/font-awesome/css/font-awesome.css',
'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
'node_modules/datatables.net-responsive-bs4/css/responsive.bootstrap4.css',
'public/css/ixp-manager.css',
'public/css/tailwind.css',
// etc. etc.
],
'public/css/ixp-pack.css',
).version();
mix.copyDirectory( 'node_modules/font-awesome/fonts', 'public/fonts' );