forked from snipe/snipe-it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
56 lines (46 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
42
43
44
45
46
47
48
49
50
51
52
53
54
const { mix } = require('laravel-mix');
mix.setPublicPath('build'); //this throws everything to root dir 'build'
// This generates a file called app.css, which we use
// later on to build all.css
mix
.options(
{
processCssUrls: false,
processFontUrls: true,
clearConsole: false
})
.less('resources/assets/less/AdminLTE.less', 'css')
.less('resources/assets/less/app.less', 'css')
.less('resources/assets/less/overrides.less', 'css')
mix.styles([
'build/css/app.css',
'public/css/AdminLTE.css',
'resources/assets/css/font-awesome/font-awesome.min.css',
'./bower_components/iCheck/skins/minimal/minimal.css',
'./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.standalone.css',
'public/css/overrides.css',
], 'public/css/dist/all.css');
mix.js(
// jQuery is loaded from vue.js webpack process
'./resources/assets/js/vue.js', //this is Snipe-IT's initializer for Vue.js
'build'
).sourceMaps();
mix.scripts([
'./node_modules/jquery-ui/jquery-ui.js',
'build/vue.js', //this is the modularized nifty Vue.js thing we just built, above!
'./node_modules/tether/dist/js/tether.min.js',
'./node_modules/jquery-slimscroll/jquery.slimscroll.js',
'./node_modules/jquery.iframe-transport/jquery.iframe-transport.js',
'./node_modules/blueimp-file-upload/js/jquery.fileupload.js',
'./node_modules/fastclick/lib/fastclick.js',
'./node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js',
'./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
'./bower_components/iCheck/icheck.js',
'./node_modules/ekko-lightbox/dist/ekko-lightbox.js',
'./resources/assets/js/app.js', //this is part of AdminLTE
'./resources/assets/js/snipeit.js', //this is the actual Snipe-IT JS
'./resources/assets/js/snipeit_modals.js'
],'public/js/dist/all.js');
//if (mix.config.inProduction) {
//mix.version();
//}