1e837ff07SGreg Roach// https://laravel-mix.com 26472855aSDavid Druryconst mix = require('laravel-mix'); 3e837ff07SGreg Roach 4b9a12084SGreg Roach// https://github.com/postcss/postcss-import 56472855aSDavid Druryconst postcssImport = require('postcss-import')(); 6b9a12084SGreg Roach 7e837ff07SGreg Roach// https://github.com/postcss/autoprefixer 86472855aSDavid Druryconst postcssAutoprefixer = require('autoprefixer')(); 9e837ff07SGreg Roach 10e6bc143fSGreg Roach// https://github.com/elchininet/postcss-rtlcss 11*f71c3130SGreg Roachconst postcssRTLCSS = require('postcss-rtlcss')({safeBothPrefix: true}); 12e837ff07SGreg Roach 13e837ff07SGreg Roach// https://github.com/bezoerb/postcss-image-inliner 146472855aSDavid Druryconst postcssImageInliner = require('postcss-image-inliner')({ 156472855aSDavid Drury assetPaths: ['resources/css'], 166472855aSDavid Drury maxFileSize: 0 17e837ff07SGreg Roach}); 18e837ff07SGreg Roach 1997c22350SGreg Roach// https://github.com/postcss/postcss-custom-properties 2097c22350SGreg Roach// Enable CSS variables in IE 216472855aSDavid Druryconst postcssCustomProperties = require('postcss-custom-properties')(); 2297c22350SGreg Roach 2327c4cda0SGreg Roachmix 2427c4cda0SGreg Roach .autoload({ 256472855aSDavid Drury jquery: ['$', 'jQuery'] 2627c4cda0SGreg Roach }) 27497e2204SGreg Roach .setPublicPath('./public') 28b95649ebSGreg Roach .sourceMaps(false) 296472855aSDavid Drury .js('resources/js/vendor.js', 'public/js/vendor.min.js') 306472855aSDavid Drury .babel(['resources/js/webtrees.js', 'resources/js/statistics.js', 'resources/js/treeview.js'], 'public/js/webtrees.min.js') 316472855aSDavid Drury .copy('node_modules/leaflet/dist/images/*', 'public/css/images/') 326472855aSDavid Drury .copy('node_modules/dejavu-fonts-ttf/ttf/DejaVuSans.ttf', 'resources/fonts/') 33497e2204SGreg Roach .options({ 34497e2204SGreg Roach processCssUrls: false, 35497e2204SGreg Roach postCss: [ 366472855aSDavid Drury postcssImport, 37e6bc143fSGreg Roach postcssRTLCSS, 386472855aSDavid Drury postcssAutoprefixer, 396472855aSDavid Drury postcssImageInliner, 406472855aSDavid Drury postcssCustomProperties 41497e2204SGreg Roach ] 42497e2204SGreg Roach }) 436472855aSDavid Drury .postCss('resources/css/administration.css', 'public/css/administration.min.css') 446472855aSDavid Drury .postCss('resources/css/clouds.css', 'public/css/clouds.min.css') 456472855aSDavid Drury .postCss('resources/css/colors.css', 'public/css/colors.min.css') 466472855aSDavid Drury .postCss('resources/css/colors/aquamarine.css', 'public/css/colors/aquamarine.min.css') 476472855aSDavid Drury .postCss('resources/css/colors/ash.css', 'public/css/colors/ash.min.css') 486472855aSDavid Drury .postCss('resources/css/colors/belgianchocolate.css', 'public/css/colors/belgianchocolate.min.css') 496472855aSDavid Drury .postCss('resources/css/colors/bluelagoon.css', 'public/css/colors/bluelagoon.min.css') 506472855aSDavid Drury .postCss('resources/css/colors/bluemarine.css', 'public/css/colors/bluemarine.min.css') 516472855aSDavid Drury .postCss('resources/css/colors/coffeeandcream.css', 'public/css/colors/coffeeandcream.min.css') 526472855aSDavid Drury .postCss('resources/css/colors/coldday.css', 'public/css/colors/coldday.min.css') 536472855aSDavid Drury .postCss('resources/css/colors/greenbeam.css', 'public/css/colors/greenbeam.min.css') 546472855aSDavid Drury .postCss('resources/css/colors/mediterranio.css', 'public/css/colors/mediterranio.min.css') 556472855aSDavid Drury .postCss('resources/css/colors/mercury.css', 'public/css/colors/mercury.min.css') 566472855aSDavid Drury .postCss('resources/css/colors/nocturnal.css', 'public/css/colors/nocturnal.min.css') 576472855aSDavid Drury .postCss('resources/css/colors/olivia.css', 'public/css/colors/olivia.min.css') 586472855aSDavid Drury .postCss('resources/css/colors/pinkplastic.css', 'public/css/colors/pinkplastic.min.css') 596472855aSDavid Drury .postCss('resources/css/colors/sage.css', 'public/css/colors/sage.min.css') 606472855aSDavid Drury .postCss('resources/css/colors/shinytomato.css', 'public/css/colors/shinytomato.min.css') 616472855aSDavid Drury .postCss('resources/css/colors/tealtop.css', 'public/css/colors/tealtop.min.css') 626472855aSDavid Drury .postCss('resources/css/fab.css', 'public/css/fab.min.css') 636472855aSDavid Drury .postCss('resources/css/minimal.css', 'public/css/minimal.min.css') 646472855aSDavid Drury .postCss('resources/css/webtrees.css', 'public/css/webtrees.min.css') 656472855aSDavid Drury .postCss('resources/css/xenea.css', 'public/css/xenea.min.css') 666472855aSDavid Drury .postCss('resources/css/vendor.css', 'public/css/vendor.min.css'); 67