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 install
command -
Develop your Leaflet Map within the respective
/src
folder -
Pack your application running the
npm run build
command - See generated results opening the
/dist/index.html
file
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)