Add Minified Version of Bundle

This commit is contained in:
Leo Herzog
2020-08-19 22:16:24 -04:00
parent 2e059e76b1
commit 286c43fe9d
4 changed files with 5696 additions and 5634 deletions

View File

@@ -14,8 +14,15 @@
"webtorrent": "latest"
},
"devDependencies": {
"terser": "latest",
"watchify": "latest"
},
"scripts": {
"watch": "watchify parse.js -o bundle.js",
"compile": "browserify parse.js -o bundle.js",
"minify": "terser bundle.js -c -m -o bundle.min.js",
"build": "npm run compile && npm run minify"
},
"repository": {
"type": "git",
"url": "https://github.com/leoherzog/TorrentParts.git"