-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
72 lines (61 loc) · 2.38 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
69
70
71
72
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.
|
*/
// SITE
mix.styles([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/flexslider/demo/css/flexslider.css',
'resources/assets/site/css/style.css'
], 'public/css/site.css');
mix.scripts([
// 'resources/assets/site/js/jquery-1.10.2.js',
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/flexslider/demo/js/jquery.flexslider.js',
// 'node_modules/scrollreveal/dist/scrollreveal.min.js',
'node_modules/jquery.easing/jquery.easing.min.js',
'resources/assets/site/js/custom.js'
], 'public/js/site.js');
mix.copy('node_modules/scrollreveal/dist/scrollreveal.min.js', 'public/js/scrollreveal.min.js');
mix.copy('resources/assets/site/img', 'public/site/img');
// AUTH
mix.styles([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'resources/assets/dash/css/AdminLTE.min.css',
'node_modules/icheck/skins/all.css'
], 'public/css/auth.css');
mix.scripts([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/icheck/icheck.min.js'
], 'public/js/auth.js');
// DASHBOARD
mix.styles([
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'resources/assets/dash/css/AdminLTE.min.css',
'resources/assets/dash/css/skins/_all-skins.css',
'resources/assets/dash/css/custom.css'
], 'public/css/dash.css');
mix.scripts([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/jquery-slimscroll/jquery.slimscroll.min.js',
'node_modules/fastclick/lib/fastclick.js',
'resources/assets/dash/js/adminlte.min.js'
], 'public/js/dash.js');
mix.copyDirectory('resources/assets/dash/img', 'public/dash/img');
// SHARED
mix.copyDirectory('node_modules/font-awesome', 'public/css/font-awesome');
mix.copyDirectory('node_modules/ionicons', 'public/css/ionicons');
// BrowserSync Reloading
mix.browserSync({
proxy: 'walimu4ne.test'
});