-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
48 lines (40 loc) · 1.56 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
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.
|
*/
$copystyles = [
'resources/assets/vendors/font-awesome/css/font-awesome.min.css',
'resources/assets/vendors/dropzone/dist/min/dropzone.min.css',
'resources/assets/vendors/simplemde/dist/simplemde.min.css',
'resources/assets/vendors/select2/dist/css/select2.min.css'
];
$copyscripts = [
'resources/assets/vendors/dropzone/dist/min/dropzone.min.js',
'resources/assets/vendors/simplemde/dist/simplemde.min.js',
'resources/assets/vendors/select2/dist/js/select2.min.js',
'resources/assets/vendors/moment/src/moment.js',
'node_modules/bootbox/bootbox.min.js',
'node_modules/vue/dist/vue.min.js'
];
$styles = [
'resources/assets/vendors/animate.css/animate.min.css',
'resources/assets/vendors/bootstrap/dist/css/bootstrap.min.css',
'resources/assets/css/custom.css',
'resources/assets/css/portal.css'
];
$scripts = [
'resources/assets/vendors/jquery/dist/jquery.min.js',
'resources/assets/vendors/bootstrap/dist/js/bootstrap.min.js',
'resources/assets/js/custom.min.js',
];
mix.styles($styles, 'public/css/all.css');
mix.scripts($scripts, 'public/js/all.js');
mix.copy($copystyles, 'public/css');
mix.copy($copyscripts, 'public/js');