Skip to content

Commit

Permalink
use terser (https://www.npmjs.com/package/terser) [1], 2 passes shave…
Browse files Browse the repository at this point in the history
…s a few bytes more

[1] mishoo/UglifyJS#3156 (comment)
  • Loading branch information
Fil committed Sep 2, 2018
1 parent 44f6a83 commit 0ae2c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"url": "https://github.com/Fil/d3-geo-voronoi.git"
},
"author": {
"name": "Philippe Riviere",
"name": "Philippe Rivière",
"url": "https://github.com/Fil"
},
"scripts": {
"pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -g d3-array:d3,d3-geo:d3,d3-delaunay:d3 -f umd -n d3 --extend d3 -o build/d3-geo-voronoi.js -- index.js",
"test": "tape 'test/**/*-test.js'",
"prepublishOnly": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-geo-voronoi.js -c negate_iife=false -m -o build/d3-geo-voronoi.min.js",
"prepublishOnly": "npm run test && terser --preamble \"$(preamble)\" build/d3-geo-voronoi.js -c passes=2 -c negate_iife=false -m -o build/d3-geo-voronoi.min.js",
"postpublish": "zip -j build/d3-geo-voronoi.zip -- LICENSE README.md build/d3-geo-voronoi.js build/d3-geo-voronoi.min.js"
},
"dependencies": {
Expand All @@ -38,6 +38,6 @@
"package-preamble": "0.1",
"rollup": "0.49",
"tape": "4",
"uglify-es": "*"
"terser": "^3.8.2"
}
}

0 comments on commit 0ae2c72

Please sign in to comment.