Skip to content

Commit

Permalink
fix: use terser instead of jsmin
Browse files Browse the repository at this point in the history
Replace jsmin with terser
  • Loading branch information
maticzav committed Apr 29, 2020
2 parents 214de5e + 1137a66 commit 7bf4b10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"clean": "rimraf dist",
"compile": "tsc -d && yarn run minify",
"minify": "jsmin -o dist/index.min.js dist/index.js",
"minify": "terser -c -m --source-map \"content='./dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js -- dist/index.js",
"pretest": "npm run clean && npm run compile",
"test": "echo 'test'",
"posttest": "npm run lint",
Expand All @@ -24,7 +24,6 @@
},
"dependencies": {
"cookie": "^0.4.0",
"jsmin": "^1.0.1",
"set-cookie-parser": "^2.4.3"
},
"devDependencies": {
Expand All @@ -38,6 +37,7 @@
"pretty-quick": "2.0.1",
"rimraf": "3.0.2",
"semantic-release": "17.0.7",
"terser": "^4.6.12",
"ts-loader": "6.2.2",
"ts-node": "8.9.1",
"tslint": "6.1.2",
Expand Down
14 changes: 9 additions & 5 deletions yarn.lock
Expand Up @@ -5178,11 +5178,6 @@ jsesc@~0.5.0:
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=

jsmin@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/jsmin/-/jsmin-1.0.1.tgz#e7bd0dcd6496c3bf4863235bf461a3d98aa3b98c"
integrity sha1-570NzWSWw79IYyNb9GGj2YqjuYw=

json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
Expand Down Expand Up @@ -9417,6 +9412,15 @@ terser@^4.1.2:
source-map "~0.6.1"
source-map-support "~0.5.12"

terser@^4.6.12:
version "4.6.12"
resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.12.tgz#44b98aef8703fdb09a3491bf79b43faffc5b4fee"
integrity sha512-fnIwuaKjFPANG6MAixC/k1TDtnl1YlPLUlLVIxxGZUn1gfUx2+l3/zGNB72wya+lgsb50QBi2tUV75RiODwnww==
dependencies:
commander "^2.20.0"
source-map "~0.6.1"
source-map-support "~0.5.12"

text-extensions@^1.0.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.7.0.tgz#faaaba2625ed746d568a23e4d0aacd9bf08a8b39"
Expand Down

0 comments on commit 7bf4b10

Please sign in to comment.