unvt / charites

It is an application to style vector tiles easily
https://unvt.github.io/charites/
MIT License
54 stars 13 forks source link

get JS/CSS file path from NPM directly instead of hard coded CDN version #179

Open JinIgarashi opened 2 months ago

JinIgarashi commented 2 months ago

Describe the bug

Currently, maplibre version is hard coded as the below file.

https://github.com/unvt/charites/blob/ad3e36bd76f081cb3560072cd93b1eef998b069d/provider/default/index.html#L5-L10

It would be nice if it can get JS/CSS file path from NPM directly instead of hard coded version.

To Reproduce n/a

Expected behavior If js/css is imported from NPM, version can be managed much easier than hardcoding.

Screenshots If applicable, add screenshots to help explain your problem.

Charites Version:

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

smellman commented 2 months ago

It hard to use NPM modules with serve command.