This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
How to load nuxt-leaflet
locally?
#77
Comments
Here is the solution:
|
Thanks! Had the same issue and save 421kb in the vendor bundle thanks to this solution. |
I got everything to work, awesome! Just one more thing. Any chance this is fixable? My code:
Edit: It seems like vue2-leaflet-markercluster.js is causing the problem.. any ideas? |
you can do something like
taked from here https://vue2-leaflet.netlify.app/quickstart/#nuxt |
What works for me is: delete L.Icon.Default.prototype._getIconUrl
L.Icon.Default.mergeOptions({
shadowUrl: ''
}) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
By adding
'nuxt-leaflet',
innuxt.config.js
, it is loading on all pages. But I need to import leaflet on ONE page only to reduce load size. How Can I do this?The text was updated successfully, but these errors were encountered: