1*e837ff07SGreg Roach// https://laravel-mix.com 2*e837ff07SGreg Roachconst mix = require("laravel-mix"); 3*e837ff07SGreg Roach 4*e837ff07SGreg Roach// https://github.com/postcss/autoprefixer 5*e837ff07SGreg Roachconst autoprefixer = require("autoprefixer")(); 6*e837ff07SGreg Roach 7*e837ff07SGreg Roach// https://github.com/jakob101/postcss-inline-rtl 8*e837ff07SGreg Roachconst postcss_rtl = require("postcss-rtl")(); 9*e837ff07SGreg Roach 10*e837ff07SGreg Roach// https://github.com/bezoerb/postcss-image-inliner 11*e837ff07SGreg Roachconst postcss_image_inliner = require("postcss-image-inliner")({ 12*e837ff07SGreg Roach assetPaths: ["resources/css"], 13*e837ff07SGreg Roach}); 14*e837ff07SGreg Roach 15*e837ff07SGreg Roach// https://github.com/postcss/postcss 16*e837ff07SGreg Roachconst postCssPlugins = [ 17*e837ff07SGreg Roach autoprefixer, 18*e837ff07SGreg Roach postcss_image_inliner, 19*e837ff07SGreg Roach postcss_rtl, 20*e837ff07SGreg Roach]; 2127c4cda0SGreg Roach 2227c4cda0SGreg Roachmix 2327c4cda0SGreg Roach .autoload({ 24ad727080SGreg Roach jquery: ["$", "jQuery"], 2527c4cda0SGreg Roach }) 26*e837ff07SGreg Roach .sourceMaps() 27ad727080SGreg Roach .js("resources/js/vendor.js", "public/js/vendor.min.js") 28ad727080SGreg Roach .babel("resources/js/webtrees.js", "public/js/webtrees.min.js") 29*e837ff07SGreg Roach .copy("node_modules/@fortawesome/fontawesome-free/webfonts/*", "public/webfonts/") 30*e837ff07SGreg Roach .copy("node_modules/leaflet/dist/images/*", "public/css/images/") 31*e837ff07SGreg Roach .copy("node_modules/dejavu-fonts-ttf/ttf/DejaVuSans.ttf", "resources/fonts/") 32*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/clouds.css"], "resources/css/clouds.temp.css") 33*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/clouds.css", "resources/css/colors.css"], "resources/css/colors.temp.css") 34*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/fab.css"], "resources/css/fab.temp.css") 35*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/minimal.css"], "resources/css/minimal.temp.css") 36*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/webtrees.css"], "resources/css/webtrees.temp.css") 37*e837ff07SGreg Roach .styles(["resources/css/common.css", "resources/css/xenea.css"], "resources/css/xenea.temp.css") 3827c4cda0SGreg Roach .styles([ 39ad727080SGreg Roach "node_modules/bootstrap/dist/css/bootstrap.min.css", 40ad727080SGreg Roach "node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css", 41ad727080SGreg Roach "node_modules/@fortawesome/fontawesome-free/css/regular.css", 42ad727080SGreg Roach "node_modules/@fortawesome/fontawesome-free/css/solid.css", 43ad727080SGreg Roach "node_modules/@fortawesome/fontawesome-free/css/fontawesome.css", 44ad727080SGreg Roach "node_modules/font-awesome-rtl/font-awesome-rtl.css", 45ad727080SGreg Roach "node_modules/select2/dist/css/select2.min.css", 46ad727080SGreg Roach "node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css", 47ad727080SGreg Roach "node_modules/leaflet/dist/leaflet.css", 48ad727080SGreg Roach "node_modules/beautifymarker/leaflet-beautify-marker-icon.css", 49ad727080SGreg Roach "node_modules/leaflet-geosearch/dist/style.css", 50ad727080SGreg Roach "node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css", 51ad727080SGreg Roach "node_modules/leaflet.markercluster/dist/MarkerCluster.css", 52*e837ff07SGreg Roach ], "public/css/vendor.temp.css") 53*e837ff07SGreg Roach .postCss("resources/css/administration.css", "public/css/administration.min.css", postCssPlugins) 54*e837ff07SGreg Roach .postCss("resources/css/clouds.temp.css", "public/css/clouds.min.css", postCssPlugins) 55*e837ff07SGreg Roach .postCss("resources/css/colors.temp.css", "public/css/colors.min.css", postCssPlugins) 56*e837ff07SGreg Roach .postCss("resources/css/fab.temp.css", "public/css/fab.min.css", postCssPlugins) 57*e837ff07SGreg Roach .postCss("resources/css/minimal.temp.css", "public/css/minimal.min.css", postCssPlugins) 58*e837ff07SGreg Roach .postCss("resources/css/webtrees.temp.css", "public/css/webtrees.min.css", postCssPlugins) 59*e837ff07SGreg Roach .postCss("resources/css/xenea.temp.css", "public/css/xenea.min.css", postCssPlugins) 60*e837ff07SGreg Roach .postCss("public/css/vendor.temp.css", "public/css/vendor.min.css", postCssPlugins) 61*e837ff07SGreg Roach; 62