Have uglifyjs spit out a sourcemap for leaflet.js too. (#5351)

* Have uglifyjs spit out a sourcemap for leaflet.js too.

Fixes #5341

* Fix incorrect source map file when publishing a release and add the new one too.
This commit is contained in:
Dave Leaver 2017-02-22 01:53:07 +13:00 committed by Iván Sánchez Ortega
parent 643ca522c1
commit bd957ad32f
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ npm run-script build
echo "Creating git tag v$VERSION..."
git add dist/leaflet-src.js dist/leaflet.js dist/leaflet-src.map -f
git add dist/leaflet-src.js dist/leaflet.js dist/leaflet-src.js.map dist/leaflet.js.map -f
git commit -m "v$VERSION"

View File

@ -39,7 +39,7 @@
"lintfix": "eslint src --fix; eslint spec/suites --fix; ",
"rollup": "rollup -c build/rollup-config.js",
"watch": "rollup -w -c build/rollup-watch-config.js",
"uglify": "uglifyjs dist/leaflet-src.js -c -m -o dist/leaflet.js"
"uglify": "uglifyjs dist/leaflet-src.js -c -m -o dist/leaflet.js --source-map dist/leaflet.js.map --in-source-map dist/leaflet-src.js.map --source-map-url leaflet.js.map"
},
"eslintConfig": {
"root": true,