1e837ff07SGreg Roach// https://laravel-mix.com 2e837ff07SGreg Roachconst mix = require("laravel-mix"); 3e837ff07SGreg Roach 4e837ff07SGreg Roach// https://github.com/postcss/autoprefixer 5e837ff07SGreg Roachconst autoprefixer = require("autoprefixer")(); 6e837ff07SGreg Roach 7e837ff07SGreg Roach// https://github.com/jakob101/postcss-inline-rtl 8e837ff07SGreg Roachconst postcss_rtl = require("postcss-rtl")(); 9e837ff07SGreg Roach 10e837ff07SGreg Roach// https://github.com/bezoerb/postcss-image-inliner 11e837ff07SGreg Roachconst postcss_image_inliner = require("postcss-image-inliner")({ 12e837ff07SGreg Roach assetPaths: ["resources/css"], 13e837ff07SGreg Roach}); 14e837ff07SGreg Roach 1597c22350SGreg Roach// https://github.com/postcss/postcss-custom-properties 1697c22350SGreg Roach// Enable CSS variables in IE 1797c22350SGreg Roachconst postcss_custom_properties = require("postcss-custom-properties")(); 1897c22350SGreg Roach 19e837ff07SGreg Roach// https://github.com/postcss/postcss 20e837ff07SGreg Roachconst postCssPlugins = [ 21e837ff07SGreg Roach autoprefixer, 22e837ff07SGreg Roach postcss_image_inliner, 23e837ff07SGreg Roach postcss_rtl, 2497c22350SGreg Roach postcss_custom_properties, 25e837ff07SGreg Roach]; 2627c4cda0SGreg Roach 2727c4cda0SGreg Roachmix 2827c4cda0SGreg Roach .autoload({ 29ad727080SGreg Roach jquery: ["$", "jQuery"], 3027c4cda0SGreg Roach }) 31e837ff07SGreg Roach .sourceMaps() 32ad727080SGreg Roach .js("resources/js/vendor.js", "public/js/vendor.min.js") 33ad727080SGreg Roach .babel("resources/js/webtrees.js", "public/js/webtrees.min.js") 34e837ff07SGreg Roach .copy("node_modules/@fortawesome/fontawesome-free/webfonts/*", "public/webfonts/") 35e837ff07SGreg Roach .copy("node_modules/leaflet/dist/images/*", "public/css/images/") 36e837ff07SGreg Roach .copy("node_modules/dejavu-fonts-ttf/ttf/DejaVuSans.ttf", "resources/fonts/") 37e837ff07SGreg Roach .postCss("resources/css/administration.css", "public/css/administration.min.css", postCssPlugins) 38*f699d6fcSGreg Roach .postCss("resources/css/clouds.css", "public/css/clouds.min.css", postCssPlugins) 39*f699d6fcSGreg Roach .postCss("resources/css/colors.css", "public/css/colors.min.css", postCssPlugins) 40*f699d6fcSGreg Roach .postCss("resources/css/colors/aquamarine.css", "public/css/colors/aquamarine.min.css", postCssPlugins) 4197c22350SGreg Roach .postCss("resources/css/colors/ash.css", "public/css/colors/ash.min.css", postCssPlugins) 4297c22350SGreg Roach .postCss("resources/css/colors/belgianchocolate.css", "public/css/colors/belgianchocolate.min.css", postCssPlugins) 4397c22350SGreg Roach .postCss("resources/css/colors/bluelagoon.css", "public/css/colors/bluelagoon.min.css", postCssPlugins) 4497c22350SGreg Roach .postCss("resources/css/colors/bluemarine.css", "public/css/colors/bluemarine.min.css", postCssPlugins) 4597c22350SGreg Roach .postCss("resources/css/colors/coffeeandcream.css", "public/css/colors/coffeeandcream.min.css", postCssPlugins) 4697c22350SGreg Roach .postCss("resources/css/colors/coldday.css", "public/css/colors/coldday.min.css", postCssPlugins) 4797c22350SGreg Roach .postCss("resources/css/colors/greenbeam.css", "public/css/colors/greenbeam.min.css", postCssPlugins) 4897c22350SGreg Roach .postCss("resources/css/colors/mediterranio.css", "public/css/colors/mediterranio.min.css", postCssPlugins) 4997c22350SGreg Roach .postCss("resources/css/colors/mercury.css", "public/css/colors/mercury.min.css", postCssPlugins) 5097c22350SGreg Roach .postCss("resources/css/colors/nocturnal.css", "public/css/colors/nocturnal.min.css", postCssPlugins) 5197c22350SGreg Roach .postCss("resources/css/colors/olivia.css", "public/css/colors/olivia.min.css", postCssPlugins) 5297c22350SGreg Roach .postCss("resources/css/colors/pinkplastic.css", "public/css/colors/pinkplastic.min.css", postCssPlugins) 5397c22350SGreg Roach .postCss("resources/css/colors/sage.css", "public/css/colors/sage.min.css", postCssPlugins) 5497c22350SGreg Roach .postCss("resources/css/colors/shinytomato.css", "public/css/colors/shinytomato.min.css", postCssPlugins) 5597c22350SGreg Roach .postCss("resources/css/colors/tealtop.css", "public/css/colors/tealtop.min.css", postCssPlugins) 56*f699d6fcSGreg Roach .postCss("resources/css/fab.css", "public/css/fab.min.css", postCssPlugins) 57*f699d6fcSGreg Roach .postCss("resources/css/minimal.css", "public/css/minimal.min.css", postCssPlugins) 58*f699d6fcSGreg Roach .postCss("resources/css/webtrees.css", "public/css/webtrees.min.css", postCssPlugins) 59*f699d6fcSGreg Roach .postCss("resources/css/xenea.css", "public/css/xenea.min.css", postCssPlugins) 60*f699d6fcSGreg Roach .postCss("public/css/vendor.css", "public/css/vendor.min.css", postCssPlugins); 61