From bb0638bf302cfd8d50c7109b61e6cf003028d008 Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 7 May 2019 20:22:59 +0000 Subject: [PATCH] minify und so --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 10dd61e..5a88831 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "f0ck, kennste?", "main": "index.mjs", "scripts": { - "start": "node --experimental-modules src/" + "start": "npm run minify && node --experimental-modules src/", + "debug": "cp public/js/f0ck.js public/js/f0ck.min.js && node --experimental-modules src/", + "minify": "/usr/bin/uglifyjs public/js/f0ck.js -c -m --ecma 8 --warn -o public/js/f0ck.min.js" }, "author": "Flummi", "license": "ISC",