2018-09-28 14:09:48 -07:00
|
|
|
const { mix } = require("laravel-mix");
|
2017-06-06 01:44:17 -07:00
|
|
|
|
|
|
|
// This generates a file called app.css, which we use
|
|
|
|
// later on to build all.css
|
2017-05-31 12:34:05 -07:00
|
|
|
mix
|
2018-09-28 14:09:48 -07:00
|
|
|
.options({
|
|
|
|
processCssUrls: false,
|
|
|
|
processFontUrls: true,
|
|
|
|
clearConsole: false
|
|
|
|
})
|
|
|
|
.less("./resources/assets/less/AdminLTE.less", "css/build")
|
|
|
|
.less("./resources/assets/less/app.less", "css/build")
|
|
|
|
.styles(
|
|
|
|
[
|
2018-10-03 13:17:08 -07:00
|
|
|
"./node_modules/bootstrap/dist/css/bootstrap.css",
|
|
|
|
"./node_modules/font-awesome/css/font-awesome.css",
|
2018-09-28 14:09:48 -07:00
|
|
|
"./node_modules/select2/dist/css/select2.css",
|
2018-09-28 15:18:15 -07:00
|
|
|
"./public/css/build/AdminLTE.css",
|
2018-10-05 07:41:04 -07:00
|
|
|
"./node_modules/jquery-ui-dist/jquery-ui.css",
|
2018-09-28 14:09:48 -07:00
|
|
|
"./node_modules/admin-lte/plugins/iCheck/minimal/blue.css",
|
|
|
|
"./node_modules/icheck/skins/minimal/minimal.css",
|
|
|
|
"./node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.standalone.css",
|
|
|
|
"./node_modules/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css",
|
2018-09-29 14:15:25 -07:00
|
|
|
"./node_modules/blueimp-file-upload/css/jquery.fileupload.css",
|
2018-10-03 13:17:08 -07:00
|
|
|
"./node_modules/blueimp-file-upload/css/jquery.fileupload-ui.css",
|
|
|
|
"./node_modules/ekko-lightbox/dist/ekko-lightbox.css",
|
|
|
|
"./public/css/build/app.css"
|
2018-09-28 14:09:48 -07:00
|
|
|
],
|
|
|
|
"./public/css/all.css"
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Copy, minify and version skins
|
|
|
|
*/
|
|
|
|
mix.copyDirectory("./resources/assets/css/skins", "./public/css/skins");
|
2018-10-03 13:17:08 -07:00
|
|
|
mix
|
|
|
|
.minify([
|
|
|
|
"./public/css/skins/skin-green-dark.css",
|
|
|
|
"./public/css/skins/skin-orange-dark.css",
|
|
|
|
"./public/css/skins/skin-red-dark.css"
|
|
|
|
])
|
|
|
|
.version();
|
2018-09-28 14:09:48 -07:00
|
|
|
/**
|
|
|
|
* Copy, minify and version signature-pad.css
|
|
|
|
*/
|
|
|
|
mix
|
|
|
|
.copy("./resources/assets/css/signature-pad.css", "./public/css")
|
|
|
|
.minify("./public/css/signature-pad.css")
|
|
|
|
.version();
|
|
|
|
|
2018-09-28 09:02:15 -07:00
|
|
|
// Combine main SnipeIT JS files
|
2018-10-03 13:17:08 -07:00
|
|
|
mix.js(
|
|
|
|
[
|
|
|
|
"./resources/assets/js/vue.js",
|
|
|
|
"./resources/assets/js/snipeit.js", //this is the actual Snipe-IT JS
|
|
|
|
"./resources/assets/js/snipeit_modals.js"
|
|
|
|
],
|
|
|
|
"./public/js/app.js"
|
|
|
|
);
|
2017-10-25 18:13:03 -07:00
|
|
|
|
2018-09-28 14:09:48 -07:00
|
|
|
/**
|
2018-09-28 09:02:15 -07:00
|
|
|
* Combine JS
|
2018-09-28 14:09:48 -07:00
|
|
|
*/
|
2018-10-03 13:17:08 -07:00
|
|
|
mix
|
|
|
|
.combine(
|
|
|
|
[
|
|
|
|
"./node_modules/admin-lte/dist/js/adminlte.min.js",
|
2018-10-09 15:20:27 -07:00
|
|
|
"./node_modules/tether/dist/js/tether.js",
|
2018-10-03 13:17:08 -07:00
|
|
|
"./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/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js",
|
|
|
|
"./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js",
|
|
|
|
"./node_modules/ekko-lightbox/dist/ekko-lightbox.js",
|
|
|
|
"./node_modules/icheck/icheck.js",
|
|
|
|
"./resources/assets/js/extensions/pGenerator.jquery.js",
|
|
|
|
"./node_modules/chart.js/dist/Chart.js",
|
2018-10-04 23:50:57 -07:00
|
|
|
"./resources/assets/js/signature_pad.js",
|
|
|
|
"./node_modules/jquery-form-validator/form-validator/jquery.form-validator.js"
|
2018-10-03 13:17:08 -07:00
|
|
|
],
|
|
|
|
"public/js/vendor.js"
|
|
|
|
)
|
|
|
|
.version();
|
2017-05-31 12:34:05 -07:00
|
|
|
|
2018-08-28 13:10:27 -07:00
|
|
|
/**
|
|
|
|
* Combine bootstrap table js
|
|
|
|
*/
|
2018-09-28 14:09:48 -07:00
|
|
|
mix
|
|
|
|
.combine(
|
|
|
|
[
|
|
|
|
"node_modules/bootstrap-table/dist/bootstrap-table.js",
|
|
|
|
"node_modules/bootstrap-table/dist/extentions/mobile/bootstrap-table-mobile.js",
|
|
|
|
"node_modules/bootstrap-table/dist/extensions/export/bootstrap-table-export.js",
|
|
|
|
"node_modules/bootstrap-table/dist/extensions/cookie/bootstrap-table-cookie.js",
|
|
|
|
"resources/assets/js/extensions/jquery.base64.js",
|
|
|
|
"node_modules/tableexport.jquery.plugin/tableExport.js",
|
|
|
|
"node_modules/tableexport.jquery.plugin/libs/jsPDF/jspdf.min.js",
|
|
|
|
"node_modules/tableexport.jquery.plugin/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js"
|
|
|
|
],
|
|
|
|
"public/js/dist/bootstrap-table.js"
|
|
|
|
)
|
|
|
|
.version();
|
2018-08-28 13:10:27 -07:00
|
|
|
/**
|
|
|
|
* Combine bootstrap table js Simple View
|
|
|
|
*/
|
2018-09-28 14:09:48 -07:00
|
|
|
mix
|
|
|
|
.combine(
|
|
|
|
[
|
|
|
|
"node_modules/bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.js",
|
|
|
|
"node_modules/bootstrap-table/dist/extensions/toolbar/bootstrap-table-toolbar.js"
|
|
|
|
],
|
|
|
|
"public/js/dist/bootstrap-table-simple-view.js"
|
|
|
|
)
|
|
|
|
.version();
|
2018-08-28 13:10:27 -07:00
|
|
|
/**
|
|
|
|
* Combine bootstrap table css
|
|
|
|
*/
|
2018-09-28 14:09:48 -07:00
|
|
|
mix
|
|
|
|
.combine(
|
|
|
|
[
|
|
|
|
"node_modules/bootstrap-table/dist/bootstrap-table.css",
|
|
|
|
"node_modules/bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.css"
|
|
|
|
],
|
|
|
|
"public/css/dist/bootstrap-table.css"
|
|
|
|
)
|
|
|
|
.version();
|