1let mix = require('laravel-mix'); 2let path = 'public/assets-2.0.0/'; 3 4mix 5 .autoload({ 6 jquery: ['$', 'jQuery'] 7 }) 8 .js('resources/assets/js/vendor.js', path + 'js/vendor.js') 9 .babel('resources/assets/js/webtrees.js', path + 'js/webtrees.js') 10 .sourceMaps() 11 .styles([ 12 'node_modules/bootstrap/dist/css/bootstrap.min.css', 13 'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css', 14 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css', 15 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css', 16 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.css', 17 'node_modules/select2/dist/css/select2.min.css', 18 'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css' 19 ], path + 'css/vendor.css') 20 .styles([ 21 'resources/assets/css/bootstrap-rtl.min.css', 22 'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css', 23 'node_modules/font-awesome/css/font-awesome.css', 24 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css', 25 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css', 26 'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.css', 27 'node_modules/font-awesome-rtl/font-awesome-rtl.css', 28 'node_modules/select2/dist/css/select2.min.css', 29 'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css' 30 ], path + 'css/vendor-rtl.css') 31 .copy('node_modules/@fortawesome/fontawesome-free-webfonts/webfonts/*', path + 'webfonts/') 32 .copy('node_modules//dejavu-fonts-ttf/ttf/DejaVuSans.ttf', 'resources/fonts/'); 33