summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-13 21:18:48 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-13 21:18:48 +0100
commit04f4c02b5e8876f4c699d2109cda69a0d45ea009 (patch)
treedb4c4ba3ea72866e7e3d226b8ada1f6041db91a0
parentedc03d0f97cb75de09bbb9366a9d82346f32d5e1 (diff)
asset-rebuild: add CSS files and autocomplete.js
-rw-r--r--sass/dark.scss2
-rw-r--r--sass/light.scss2
-rwxr-xr-xscripts/asset-rebuild5
3 files changed, 9 insertions, 0 deletions
diff --git a/sass/dark.scss b/sass/dark.scss
index e30bacf..65ccf13 100644
--- a/sass/dark.scss
+++ b/sass/dark.scss
@@ -42,3 +42,5 @@ $powercar-wagon-color: #222222;
$button-hover: #111111;
$button-hover-border: #333333;
+
+@import 'app.scss';
diff --git a/sass/light.scss b/sass/light.scss
index 5dca9ad..6189749 100644
--- a/sass/light.scss
+++ b/sass/light.scss
@@ -42,3 +42,5 @@ $powercar-wagon-color: #cccccc;
$button-hover: #e6e6e6;
$button-hover-border: #adadad;
+
+@import 'app.scss';
diff --git a/scripts/asset-rebuild b/scripts/asset-rebuild
index 51b97a6..4d36a6d 100755
--- a/scripts/asset-rebuild
+++ b/scripts/asset-rebuild
@@ -5,6 +5,11 @@
set -ex
+sassc -t compressed sass/dark.scss public/static/css/dark.min.css
+sassc -t compressed sass/light.scss public/static/css/light.min.css
+
+scripts/update-autocomplete
+
uglifyjs public/static/js/autocomplete.js public/static/js/collapse.js -c -m > public/static/js/dbf.min.js
uglifyjs public/static/js/geolocation.js -c -m > public/static/js/geolocation.min.js
uglifyjs public/static/js/map-refresh.js -c -m > public/static/js/map-refresh.min.js