diff options
author | Marvin Borner | 2019-01-27 21:29:00 +0100 |
---|---|---|
committer | Marvin Borner | 2019-01-27 21:29:00 +0100 |
commit | 6be535d92ad355d629728052cb68c3455667ab96 (patch) | |
tree | fb06120a62e3484e7d6dceadc05a64b0b006742a /package.json | |
parent | 6ad56b575741229ead2226e4b64b905cc950167d (diff) |
Optimized compiling for deployment
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json index c82a048..b3b99f3 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "dev": "npm run watch & nodemon src/index.js --exec \"node -r dotenv/config -r babel-register\"", "watch": "npm run build && onchange public/styles/* -- npm run css & onchange public/scripts/* -- browserify public/scripts/main.js -o dist/app.js", "css": "node-sass public/styles/main.sass dist/app.css --output-style compressed", - "build": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/app.js" + "build": "rm -r dist/* && npm run css && browserify public/scripts/main.js -o dist/temp.js && minify dist/temp.js > dist/app.js && rm dist/temp.js && pug views/index.pug --out dist" }, "keywords": [ "express", @@ -43,11 +43,13 @@ "ejs": "^2.6.1", "express": "^4.16.4", "jquery": "^3.3.1", + "minify": "^4.1.0", "morgan": "^1.9.0", "onchange": "^5.2.0", "openpgp": "^4.4.5", "peer": "^0.2.10", "pug": "^2.0.0-beta11", + "pug-cli": "^1.0.0-alpha6", "rimraf": "^2.6.2", "xkcd-password": "^2.0.0" }, |