diff --git a/build/publish.sh b/build/publish.sh index 89d066d4..936f9ba8 100755 --- a/build/publish.sh +++ b/build/publish.sh @@ -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" diff --git a/package.json b/package.json index 3e54fddb..82051dcb 100644 --- a/package.json +++ b/package.json @@ -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,