Skip to content

Commit

Permalink
Install and configure terser
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Feb 25, 2024
1 parent 39c0ab6 commit 5b412fd
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.DS_Store
dist/**/*.js.map
dist/**/*.min.js
83 changes: 83 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
"build": "tsc",
"watch": "tsc -w",
"test:watch": "npm run test -- --watch",
"lint": "eslint ./src"
"lint": "eslint ./src",
"minify": "terser dist/morphlex.js -o dist/morphlex.min.js -c -m --module",
"prepare": "npm run build && npm run minify"
},
"author": "Joel Drapper",
"license": "MIT",
"devDependencies": {
"@open-wc/testing": "^3.0.0-next.5",
"@web/test-runner": "^0.18.0",
"eslint": "^8.57.0",
"terser": "^5.28.1",
"typescript": "^5.3.3",
"typescript-eslint": "^7.0.2"
}
Expand Down

0 comments on commit 5b412fd

Please sign in to comment.