leaflet-npm
Collection of Leaflet bundles to start building web maps with a proper npm module loader (browserify, rollup or webpack)
- Start cloning a branch:
-
Update project dependecies running the
npm installcommand -
Develop your Leaflet Map within the respective
/srcfolder -
Pack your application running the
npm run buildcommand - See generated results opening the
/dist/index.htmlfile
List of useful npm commands
npm install- download npm package dependeciesnpm update- download/update npm package dependeciesnpm i <package_name> [--s]/[--D]- add package/dependency (alias for:npm install <package_name> [--save]/[--save-dev])npm r <package_name> [--s]/[--D]- remove package/dependency (alias for:npm remove <package_name> [--save]/[--save-dev])npm run build- run build script (from package.json)npm run watch- run watch script (from package.json)npm start- run start command (from package.json)