From e19420b8f1b4619dcd694176d98bf65da3b01446 Mon Sep 17 00:00:00 2001
From: Pierre Jarriges <pierre.jarriges@tutanota.com>
Date: Sun, 18 Jul 2021 14:04:02 +0200
Subject: [PATCH] fix make update prod & minify css

---
 Makefile     | 2 +-
 package.json | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 77ce0d8..a79a024 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ push:
 	git add . && git commit -m "$(msg)" && git push origin HEAD
 
 update-prod:
-	git checkout . && git pull origin master && npm run build && npm run style
+	git checkout . && git pull origin master && npm run build-prod
 
 reload:
 	docker exec -it kuadrado nginx -s reload
\ No newline at end of file
diff --git a/package.json b/package.json
index 4f7800f..ea5b77f 100644
--- a/package.json
+++ b/package.json
@@ -5,9 +5,9 @@
     "main": "src/main.js",
     "scripts": {
         "test": "echo \"Error: no test specified\" && exit 1",
-        "style": "sass --watch ./src/style.scss ./public/style/style.css --style=compressed",
-        "build": "node build.js",
-        "build-prod": "node build.js prod"
+        "style-watch": "sass --watch ./src/style.scss ./public/style/style.css",
+        "build": "node build.js && sass ./src/style.scss ./public/style/style.css",
+        "build-prod": "node build.js prod && sass ./src/style.scss ./public/style/style.css --style=compressed"
     },
     "repository": "https://gitlab.com/peter_rabbit/kuadrado-website",
     "author": "Kuadrado",
-- 
GitLab