From 6be535d92ad355d629728052cb68c3455667ab96 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 27 Jan 2019 21:29:00 +0100 Subject: Optimized compiling for deployment --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'package.json') 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" }, -- cgit v1.2.3