From 5bdfc708ee841701d59419c5fa610cd2a7f9c187 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Wed, 1 May 2024 13:59:42 -0400 Subject: [PATCH] fix: vendorize the .map too for dompurify Fix up for 2c1cd46167402d7dca4e4ffb4689ec93ee01e5e8 We keep the `.mjs` fragment within the filename to avoid changing it manually within the renamed `purify.es.js` file. Given the `.map` extension, it will not affect the nginx (or others) mimetypes configuration. --- scripts/vendorsjs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/vendorsjs.sh b/scripts/vendorsjs.sh index b2617f27..163f72f7 100755 --- a/scripts/vendorsjs.sh +++ b/scripts/vendorsjs.sh @@ -26,6 +26,7 @@ mkdir -p umap/static/umap/vendors/togpx/ && cp -r node_modules/togpx/togpx.js um mkdir -p umap/static/umap/vendors/tokml && cp -r node_modules/tokml/tokml.js umap/static/umap/vendors/tokml mkdir -p umap/static/umap/vendors/locatecontrol/ && cp -r node_modules/leaflet.locatecontrol/dist/L.Control.Locate.min.* umap/static/umap/vendors/locatecontrol/ mkdir -p umap/static/umap/vendors/dompurify/ && cp -r node_modules/dompurify/dist/purify.es.mjs umap/static/umap/vendors/dompurify/purify.es.js +mkdir -p umap/static/umap/vendors/dompurify/ && cp -r node_modules/dompurify/dist/purify.es.mjs.map umap/static/umap/vendors/dompurify/purify.es.mjs.map mkdir -p umap/static/umap/vendors/colorbrewer/ && cp node_modules/colorbrewer/index.js umap/static/umap/vendors/colorbrewer/colorbrewer.js mkdir -p umap/static/umap/vendors/simple-statistics/ && cp node_modules/simple-statistics/dist/simple-statistics.min.* umap/static/umap/vendors/simple-statistics/ mkdir -p umap/static/umap/vendors/iconlayers/ && cp node_modules/leaflet-iconlayers/dist/* umap/static/umap/vendors/iconlayers/