xref: /webtrees/webpack.mix.js (revision a872a569bb1f394e79ef7135a228e7a22c7cc49f)
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/font-awesome-rtl/font-awesome-rtl.css',
18    'node_modules/select2/dist/css/select2.min.css',
19    'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css'
20  ], path + 'css/vendor.css')
21  .styles([
22    'resources/assets/css/bootstrap-rtl.min.css',
23    'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css',
24    'node_modules/font-awesome/css/font-awesome.css',
25    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css',
26    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css',
27    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.css',
28    'node_modules/font-awesome-rtl/font-awesome-rtl.css',
29    'node_modules/select2/dist/css/select2.min.css',
30    'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css'
31  ], path + 'css/vendor-rtl.css')
32  .copy('node_modules/@fortawesome/fontawesome-free-webfonts/webfonts/*', path + 'webfonts/')
33  .copy('node_modules//dejavu-fonts-ttf/ttf/DejaVuSans.ttf', 'resources/fonts/');
34