travelynx/scripts/asset-rebuild

16 lines
368 B
Text
Raw Normal View History

2019-05-11 10:28:10 +00:00
#!/bin/sh
2023-07-03 15:59:25 +00:00
# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
2020-11-27 21:12:56 +00:00
#
# SPDX-License-Identifier: MIT
2019-05-11 10:28:10 +00:00
set -x
for theme in dark light; do
sassc -t compressed sass/src/${theme}/index.scss public/static/css/${theme}.min.css
done
2023-08-26 07:17:28 +00:00
for file in geolocation travelynx-actions; do
2019-05-11 10:28:10 +00:00
uglifyjs public/static/js/${file}.js -c -m > public/static/js/${file}.min.js
done