forked from code4romania/war-support-un-acoperis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
41 lines (38 loc) · 1.94 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
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')
.extract(['jquery', 'axios', 'lodash', 'bootstrap', 'popper.js',
'perfect-scrollbar',
'headroom.js',
'choices.js', '@glidejs/glide', 'nouislider', 'flatpickr',
'chart.js'
])
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/argon-design-system-pro/scss/argon-design-system.scss', 'public/css')
.js('resources/js/argon-design-system.js', 'public/js/argon-design-system.js')
.copy('resources/js/moment-with-locales.min.js', 'public/js/moment-with-locales.min.js')
.copy('resources/js/table-data-renderer.js', 'public/js/table-data-renderer.js')
.copy('resources/css/', 'public/css/')
.copy('resources/fonts/', 'public/fonts/')
.copy('resources/images/', 'public/images/')
.copy('resources/js/jquery.fileuploader.min.js', 'public/js/jquery.fileuploader.min.js')
.copy('resources/js/jquery.sticky-sidebar.min.js', 'public/js/jquery.sticky-sidebar.min.js')
.js('resources/js/admin.js', 'public/js')
.copy('resources/js/datatables', 'public/js/datatables')
.copy('node_modules/datatables.net-dt/js/dataTables.dataTables.js', 'public/js/jquery.dataTables.min.js')
.copy('node_modules/datatables.net-dt/css/jquery.dataTables.css', 'public/css/jquery.dataTables.css')
.copy('node_modules/datatables.net-dt/images', 'public/images')
.copy('node_modules/browser-detect/dist/browser-detect.umd.js', 'public/js/browser-detect.umd.js')
.version()
if (mix.inProduction()) {
mix.version();
}