express: minify the javascript

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-09-15 13:34:51 -04:00
parent 20e560c55c
commit fdeecd0e26
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
4 changed files with 412 additions and 1 deletions

View file

@ -5,6 +5,7 @@
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"minify": "cat ./asset/frontend.js | ./node_modules/.bin/minify --js > asset/frontend.min.js",
"start": "node server.js"
},
"repository": {
@ -16,6 +17,7 @@
"dependencies": {
"body-parser": "^1.20.2",
"express": "^4.18.2",
"minify": "^10.5.2",
"morgan": "^1.10.0",
"sqlite3": "^5.1.6"
}