This repository has been archived by the owner on Aug 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
webpack.mix.js
53 lines (41 loc) · 1.76 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
let mix = require('laravel-mix');
let packages = 'node_modules/';
let gentelella = packages+'gentelella/';
let vendors = gentelella+'vendors/';
/*
|--------------------------------------------------------------------------
| 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.copy(vendors+'font-awesome/fonts/','public/fonts/');
mix.copy(gentelella+'build/js/custom.js','resources/assets/js/');
mix.combine([
vendors+'bootstrap/dist/css/bootstrap.css',
vendors+'font-awesome/css/font-awesome.css',
vendors+'pnotify/dist/pnotify.css',
vendors+'select2/dist/css/select2.css',
vendors+'nprogress/nprogress.css',
vendors+'bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min',
//Now lets add the custom css
gentelella+'build/css/custom.css',//this is the default from gentelella
'resources/assets/css/mycustom.css' //All your custom css can go here
],'public/css/app.css');
mix.combine([
vendors+'/jquery/dist/jquery.js',
vendors+'bootstrap/dist/js/bootstrap.min.js',
vendors+'pnotify/dist/pnotify.js',
vendors+'bootstrap-progressbar/bootstrap-progressbar.min.js',
vendors+'fastclick/lib/fastclick.js',
vendors+'select2/dist/js/select2.js',
vendors+'nprogress/nprogress.js',
vendors+'icheck/icheck.js',
//lets add custom scripts
'resources/assets/js/custom.js',//this default from gentelella
'resources/assets/js/init.js' //initialize other plugins here
],'public/js/app.js');
//mix.js('resources/assets/js/app.js', 'public/js');