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:
parent
643ca522c1
commit
bd957ad32f
@ -18,7 +18,7 @@ npm run-script build
|
|||||||
|
|
||||||
echo "Creating git tag v$VERSION..."
|
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"
|
git commit -m "v$VERSION"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"lintfix": "eslint src --fix; eslint spec/suites --fix; ",
|
"lintfix": "eslint src --fix; eslint spec/suites --fix; ",
|
||||||
"rollup": "rollup -c build/rollup-config.js",
|
"rollup": "rollup -c build/rollup-config.js",
|
||||||
"watch": "rollup -w -c build/rollup-watch-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": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user