diff --git a/scripts/vendorsjs.sh b/scripts/vendorsjs.sh index fbcd906d..6236936e 100755 --- a/scripts/vendorsjs.sh +++ b/scripts/vendorsjs.sh @@ -20,7 +20,9 @@ mkdir -p umap/static/umap/vendors/measurable/ && cp -r node_modules/leaflet-meas mkdir -p umap/static/umap/vendors/photon/ && cp -r node_modules/leaflet.photon/leaflet.photon.js umap/static/umap/vendors/photon/ mkdir -p umap/static/umap/vendors/csv2geojson/ && cp -r node_modules/csv2geojson/csv2geojson.js umap/static/umap/vendors/csv2geojson/ mkdir -p umap/static/umap/vendors/togeojson/ && cp node_modules/@tmcw/togeojson/dist/togeojson.es.mjs umap/static/umap/vendors/togeojson/togeojson.es.js +mkdir -p umap/static/umap/vendors/togeojson/ && cp node_modules/@tmcw/togeojson/dist/togeojson.es.mjs.map umap/static/umap/vendors/togeojson/togeojson.es.mjs.map mkdir -p umap/static/umap/vendors/tokml/ && cp node_modules/@placemarkio/tokml/dist/tokml.es.mjs umap/static/umap/vendors/tokml/tokml.es.js +mkdir -p umap/static/umap/vendors/tokml/ && cp node_modules/@placemarkio/tokml/dist/tokml.es.mjs.map umap/static/umap/vendors/tokml/tokml.es.mjs.map mkdir -p umap/static/umap/vendors/osmtogeojson/ && cp -r node_modules/osmtogeojson/osmtogeojson.js umap/static/umap/vendors/osmtogeojson/ mkdir -p umap/static/umap/vendors/georsstogeojson/ && cp -r node_modules/georsstogeojson/GeoRSSToGeoJSON.js umap/static/umap/vendors/georsstogeojson/ mkdir -p umap/static/umap/vendors/locatecontrol/ && cp -r node_modules/leaflet.locatecontrol/dist/L.Control.Locate.min.* umap/static/umap/vendors/locatecontrol/ diff --git a/umap/storage.py b/umap/storage.py index aaa6aee8..aa185428 100644 --- a/umap/storage.py +++ b/umap/storage.py @@ -32,7 +32,7 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage): 'import"%(url)s"\n', ), ( - r"""(?Pimport\(["'](?P.*?)["']\))""", + r"""(?Pimport\(["'](?P.*?)["']\))\.then""", """import("%(url)s")""", ), ),