Skip to content

No CDN Solution #3

Description

@xiaohutai

A solution without CDN depends heavily on your workflow. Here's a quick reference if you use NPM.

NPM

Install the packages using NPM:

npm install leaflet
npm install leaflet.markercluster

CSS

The locations of relevant CSS files:

node_modules/leaflet/dist/leaflet.css
node_modules/leaflet.markercluster/dist/MarkerCluster.css
node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css

JS

The locations of relevant JS files:

node_modules/leaflet/dist/leaflet.js
node_modules/leaflet.markercluster/dist/leaflet.markercluster.js

Finally, concatenate and minify using your available tools (Gulp/Grunt/Parcel/Webpack/...).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions