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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load the Leaflet assets through the NPM packages #12762

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ahukkanen
Copy link
Contributor

馃帺 What? Why?

Noticed at #12747 that the Leaflet CSS is shipped within the Decidim code which makes it hard to update. Instead of shipping the Leaflet assets in Decidim we can load them directly from the NPM packages.

The issue noted at the map.scss comment can be solved by simply adding the Leaflet path to the module resolve paths.

馃搶 Related Issues

Testing

  • Recreate the development app
  • Compile the assets
  • Configure maps for the instance
  • Start the server
  • Go to any page containing a map and see them render correctly

Instead of shipping the Leaflet assets in Decidim and making them
harder to update, load them directly from the NPM packages.
@ahukkanen ahukkanen added module: core type: change PRs that implement a change for an existing feature labels Apr 25, 2024
As these are now loaded directly from the NPM package.
@ahukkanen ahukkanen marked this pull request as draft April 25, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core type: change PRs that implement a change for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant