xref: /webtrees/webpack.mix.js (revision c1010eda29c0909ed4d5d463f32d32bfefdd4dfe)
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    'node_modules/leaflet/dist/leaflet.css',
21    'node_modules/beautifymarker/leaflet-beautify-marker-icon.css',
22    'node_modules/leaflet-geosearch/dist/style.css',
23    'node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css',
24    'node_modules/leaflet.markercluster/dist/MarkerCluster.css',
25  ], path + 'css/vendor.css')
26  .styles([
27    'resources/assets/css/bootstrap-rtl.min.css',
28    'node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css',
29    'node_modules/font-awesome/css/font-awesome.css',
30    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-regular.css',
31    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fa-solid.css',
32    'node_modules/@fortawesome/fontawesome-free-webfonts/css/fontawesome.css',
33    'node_modules/font-awesome-rtl/font-awesome-rtl.css',
34    'node_modules/select2/dist/css/select2.min.css',
35    'node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css',
36    'node_modules/leaflet/dist/leaflet.css',
37    'node_modules/beautifymarker/leaflet-beautify-marker-icon.css',
38    'node_modules/leaflet-geosearch/dist/style.css',
39    'node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css',
40    'node_modules/leaflet.markercluster/dist/MarkerCluster.css',
41  ], path + 'css/vendor-rtl.css')
42  .copy('node_modules/@fortawesome/fontawesome-free-webfonts/webfonts/*', path + 'webfonts/')
43  .copy('node_modules//dejavu-fonts-ttf/ttf/DejaVuSans.ttf', 'resources/fonts/')
44  .copy('node_modules/leaflet/dist/images/*', path + 'css/images/');
45