forked from jsdecena/laracom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
62 lines (60 loc) · 2.37 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
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 the application as well as bundling up all the JS files.
|
*/
mix
.styles(
[
'node_modules/bootstrap/dist/css/bootstrap.css',
'node_modules/font-awesome/css/font-awesome.css',
'node_modules/ionicons/dist/css/ionicons.css',
'node_modules/select2/dist/css/select2.css',
'resources/assets/admin-lte/css/AdminLTE.min.css',
'resources/assets/admin-lte/css/skins/skin-purple.min.css',
'node_modules/datatables/media/css/jquery.dataTables.css',
'resources/assets/css/admin.css'
],
'public/css/admin.min.css'
)
.styles(
[
'node_modules/bootstrap/dist/css/bootstrap.css',
'node_modules/font-awesome/css/font-awesome.css',
'node_modules/select2/dist/css/select2.css',
'resources/assets/css/drift-basic.min.css',
'resources/assets/css/front.css'
],
'public/css/style.min.css'
)
.scripts(
[
'resources/assets/js/jquery-2.2.3.min.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/select2/dist/js/select2.js',
'node_modules/datatables/media/js/jquery.dataTables.js',
'resources/assets/admin-lte/js/app.js'
],
'public/js/admin.min.js'
)
.scripts(
[
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/select2/dist/js/select2.js',
'resources/assets/js/owl.carousel.min.js',
'resources/assets/js/Drift.min.js'
],
'public/js/front.min.js'
)
.copyDirectory('node_modules/datatables/media/images', 'public/images')
.copyDirectory('node_modules/font-awesome/fonts', 'public/fonts')
.copyDirectory('resources/assets/admin-lte/img', 'public/img')
.copyDirectory('resources/assets/images', 'public/images')
.copy('resources/assets/js/scripts.js', 'public/js/scripts.js')
.copy('resources/assets/js/custom.js', 'public/js/custom.js');