2017-05-31 12:34:05 -07:00
|
|
|
|
|
|
|
const { mix } = require('laravel-mix');
|
|
|
|
|
2017-06-06 01:39:53 -07:00
|
|
|
mix.setPublicPath('build'); //this throws everything to root dir 'build'
|
2017-05-31 12:34:05 -07:00
|
|
|
|
|
|
|
mix
|
2017-06-06 00:51:41 -07:00
|
|
|
.options(
|
|
|
|
{
|
|
|
|
processCssUrls: false,
|
2017-06-06 01:39:53 -07:00
|
|
|
processFontUrls: true,
|
|
|
|
clearConsole: false
|
2017-06-06 00:51:41 -07:00
|
|
|
})
|
2017-05-31 12:34:05 -07:00
|
|
|
.less('resources/assets/less/AdminLTE.less', 'public/css')
|
|
|
|
.less('resources/assets/less/app.less', 'public/css')
|
|
|
|
.less('resources/assets/less/overrides.less', 'public/css')
|
|
|
|
|
|
|
|
|
2017-06-06 00:51:41 -07:00
|
|
|
|
|
|
|
mix.styles([
|
2017-06-06 01:39:53 -07:00
|
|
|
//'public/css/app.css', //what is this file, is this wrong? Are we building from ourselves?
|
|
|
|
'build/public/css/app.css',
|
2017-05-31 12:34:05 -07:00
|
|
|
'public/css/AdminLTE.css',
|
2017-06-06 00:51:41 -07:00
|
|
|
'resources/assets/css/font-awesome/font-awesome.min.css',
|
2017-05-31 12:34:05 -07:00
|
|
|
'./bower_components/iCheck/skins/minimal/minimal.css',
|
2017-06-06 00:51:41 -07:00
|
|
|
'./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
|
2017-05-31 12:34:05 -07:00
|
|
|
'public/css/overrides.css',
|
2017-06-06 01:39:53 -07:00
|
|
|
|
2017-06-06 00:51:41 -07:00
|
|
|
], 'public/css/dist/all.css');
|
2017-05-31 12:34:05 -07:00
|
|
|
|
2017-06-06 00:51:41 -07:00
|
|
|
mix.js(
|
2017-05-31 12:34:05 -07:00
|
|
|
// jQuery is loaded from vue.js webpack process
|
|
|
|
'./resources/assets/js/vue.js', //this is Snipe-IT's initializer for Vue.js
|
2017-06-06 01:39:53 -07:00
|
|
|
'build/public'
|
|
|
|
).sourceMaps();
|
2017-05-31 12:34:05 -07:00
|
|
|
|
2017-06-06 00:51:41 -07:00
|
|
|
mix.scripts([
|
2017-06-06 01:39:53 -07:00
|
|
|
'build/public/vue.js', //this is the modularized nifty Vue.js thing we just built, above!
|
2017-05-31 13:27:17 -07:00
|
|
|
'./node_modules/tether/dist/js/tether.min.js',
|
2017-05-31 12:34:05 -07:00
|
|
|
'./bower_components/jquery-ui/jquery-ui.js',
|
|
|
|
'./bower_components/jquery-slimscroll/jquery.slimscroll.js',
|
|
|
|
'./bower_components/jquery.iframe-transport/jquery.iframe-transport.js',
|
|
|
|
'./bower_components/blueimp-file-upload/js/jquery.fileupload.js',
|
|
|
|
'./node_modules/fastclick/lib/fastclick.js',
|
|
|
|
'./node_modules/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js',
|
2017-06-06 00:51:41 -07:00
|
|
|
'./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
|
2017-05-31 12:34:05 -07:00
|
|
|
'./bower_components/iCheck/icheck.js',
|
|
|
|
'./bower_components/select2/dist/js/select2.full.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
|
|
|
|
],'public/js/dist/all.js');
|
|
|
|
|
|
|
|
//if (mix.config.inProduction) {
|
2017-06-06 00:51:41 -07:00
|
|
|
//mix.version();
|
2017-05-31 12:34:05 -07:00
|
|
|
//}
|
|
|
|
|
|
|
|
|