Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to use outside node? #27

Closed
animaux opened this issue Apr 8, 2021 · 4 comments
Closed

Possibility to use outside node? #27

animaux opened this issue Apr 8, 2021 · 4 comments

Comments

@animaux
Copy link

animaux commented Apr 8, 2021

Hi Steve,

I was wondering if it was technically possible to build this as frontend extension, like mentioned here: https://stackoverflow.com/questions/62279096/include-js-script-from-a-npm-install

There are some instructions, but the last reply implies there may be some integral problems. However I’m not familiar with node … maybe you could elaborate a bit?

Thanks and all the best!

@stevage
Copy link
Owner

stevage commented Apr 8, 2021

Thanks, yeah I saw that question. I'm definitely happy to support it, I actually just don't know what is required to produce a build in that format.

@animaux
Copy link
Author

animaux commented Apr 9, 2021

Fair enough, thanks! Anyone we could reach out to? Help! :)

@stevage
Copy link
Owner

stevage commented Apr 11, 2021

Ok, I finally figured this out using Rollup. You can use this URL:

https://unpkg.com/mapbox-gl-utils

Demonstration: https://codepen.io/stevebennett/pen/dyNdGNP

@animaux
Copy link
Author

animaux commented Apr 11, 2021

Brilliant, thanks a lot!

stevage added a commit that referenced this issue Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants