xref: /webtrees/webpack.mix.js (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1let mix  = require("laravel-mix");
2
3mix
4    .autoload({
5        jquery: ["$", "jQuery"],
6    })
7    .js("resources/js/vendor.js", "public/js/vendor.min.js")
8    .babel("resources/js/webtrees.js", "public/js/webtrees.min.js")
9    .sourceMaps()
10    .copy("node_modules//dejavu-fonts-ttf/ttf/DejaVuSans.ttf", "resources/fonts/")
11    .styles("resources/css/administration.css", "public/css/administration.min.css")
12    .styles([
13        "node_modules/bootstrap/dist/css/bootstrap.min.css",
14        "node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css",
15        "node_modules/@fortawesome/fontawesome-free/css/regular.css",
16        "node_modules/@fortawesome/fontawesome-free/css/solid.css",
17        "node_modules/@fortawesome/fontawesome-free/css/fontawesome.css",
18        "node_modules/font-awesome-rtl/font-awesome-rtl.css",
19        "node_modules/select2/dist/css/select2.min.css",
20        "node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css",
21        "node_modules/leaflet/dist/leaflet.css",
22        "node_modules/beautifymarker/leaflet-beautify-marker-icon.css",
23        "node_modules/leaflet-geosearch/dist/style.css",
24        "node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
25        "node_modules/leaflet.markercluster/dist/MarkerCluster.css",
26    ], "public/css/vendor.min.css")
27    .styles([
28        "resources/css/bootstrap-rtl.min.css",
29        "node_modules/datatables.net-bs4/css/dataTables.bootstrap4.css",
30        "node_modules/font-awesome/css/font-awesome.css",
31        "node_modules/@fortawesome/fontawesome-free/css/regular.css",
32        "node_modules/@fortawesome/fontawesome-free/css/solid.css",
33        "node_modules/@fortawesome/fontawesome-free/css/fontawesome.css",
34        "node_modules/font-awesome-rtl/font-awesome-rtl.css",
35        "node_modules/select2/dist/css/select2.min.css",
36        "node_modules/typeahead.js-bootstrap4-css/typeaheadjs.css",
37        "node_modules/leaflet/dist/leaflet.css",
38        "node_modules/beautifymarker/leaflet-beautify-marker-icon.css",
39        "node_modules/leaflet-geosearch/dist/style.css",
40        "node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
41        "node_modules/leaflet.markercluster/dist/MarkerCluster.css",
42    ], "public/css/vendor-rtl.min.css")
43    .copy("node_modules/@fortawesome/fontawesome-free/webfonts/*", "public/webfonts/")
44    .copy("node_modules/leaflet/dist/images/*", "public/css/images/");
45