Skip to content

Commit

Permalink
add mangling to minization
Browse files Browse the repository at this point in the history
  • Loading branch information
125m125 committed Oct 24, 2017
1 parent 6e2919b commit 673253f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"scripts": {
"prepare": "npm run default-rollup",
"test": "babel-tape-runner test/**/*Test.js",
"prepublishOnly": "uglifyjs -b beautify=false target/ktapi-full.js -o target/ktapi-full.min.js",
"clean": "rm -rf target/ && rm -f src/processedIndex.js",
"default-rollup": "rollup -c && FILENAME=ktapi-full npm run minimize",
"minimize": "uglifyjs -b beautify=false target/${FILENAME:-ktapi-custom}.js -o target/${FILENAME:-ktapi-custom}.min.js",
"minimize": "uglifyjs -m -b beautify=false target/${FILENAME:-ktapi-custom}.js -o target/${FILENAME:-ktapi-custom}.min.js",
"custom-rollup": "metascript src/index.js $META_PARAMS >src/processedIndex.js && rollup -c -i src/processedIndex.js -o target/${FILENAME:-ktapi-custom}.js && rm src/processedIndex.js && npm run minimize",
"interactive-rollup": "node interactiveBuild.js && META_PARAMS=$(cat target/settings) npm run custom-rollup"
},
Expand Down

0 comments on commit 673253f

Please sign in to comment.