-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.mix.js
43 lines (39 loc) · 1.51 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
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.
|
*/
var paths = {
"node": "./node_modules/"
};
mix.setResourceRoot('../')
//game
.sass('resources/assets/sass/ui.scss', 'public/css')
//web
.sass('resources/assets/sass/web.scss', 'public/css')
//admin scripts
.sass('resources/assets/sass/admin.scss', 'public/css')
.styles([
'public/css/admin.css',
paths.node + '@eonasdan/tempus-dominus/dist/css/tempus-dominus.min.css',
],
'public/css/all-admin.css')
//scripts
.scripts([
paths.node + 'jquery/dist/jquery.min.js',
paths.node + 'bootstrap/dist/js/bootstrap.bundle.min.js',
paths.node + '@popperjs/core/dist/umd/popper.min.js',
paths.node + '@eonasdan/tempus-dominus/dist/js/tempus-dominus.min.js',
paths.node + '@eonasdan/tempus-dominus/dist/js/jQuery-provider.min.js',
paths.node + 'sortablejs/Sortable.min.js',
paths.node + 'clipboard/dist/clipboard.min.js',
'resources/assets/js/app.js',
'resources/assets/js/router.js'
],
'public/js/app.js');