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
+5625 -5633
View File
File diff suppressed because it is too large Load Diff
+63
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -105,7 +105,7 @@
</div> </div>
<script src="bundle.js"></script> <script src="bundle.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-172544485-1"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-172544485-1"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
+7
View File
@@ -14,8 +14,15 @@
"webtorrent": "latest" "webtorrent": "latest"
}, },
"devDependencies": { "devDependencies": {
"terser": "latest",
"watchify": "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": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/leoherzog/TorrentParts.git" "url": "https://github.com/leoherzog/TorrentParts.git"