xref: /webtrees/webpack.mix.js (revision 7ddc22755d80c8eab1bfada5c04fafd9870f4337)
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/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
15    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css',
16    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css',
17    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.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/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
25    'node_modules/font-awesome/css/font-awesome.css',
26    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css',
27    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css',
28    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.css',
29    'node_modules/font-awesome-rtl/font-awesome-rtl.css',
30    'node_modules/select2/dist/css/select2.min.css',
31    'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css'
32  ], path + 'css/vendor-rtl.css')
33	.copy('node_modules/@fortawesome/fontawesome-free-webfonts/webfonts/*', path + 'webfonts/');
34