diff options
author | Zach van Rijn <me@zv.io> | 2021-07-31 18:15:11 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-31 18:15:11 -0500 |
commit | 885939380d73da581aa5502ae49cfd1f531504bf (patch) | |
tree | d664b11fd016413b4029d4a45dee7f1a303d3f0a /assets/css/compile.sh | |
parent | 33033ca4509653bcab025a9e046e5f18993c876e (diff) | |
download | site-ng-885939380d73da581aa5502ae49cfd1f531504bf.tar.gz site-ng-885939380d73da581aa5502ae49cfd1f531504bf.tar.bz2 site-ng-885939380d73da581aa5502ae49cfd1f531504bf.tar.xz site-ng-885939380d73da581aa5502ae49cfd1f531504bf.zip |
First attempt at supporting old browsers.
Diffstat (limited to 'assets/css/compile.sh')
-rwxr-xr-x | assets/css/compile.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/assets/css/compile.sh b/assets/css/compile.sh new file mode 100755 index 0000000..2487f07 --- /dev/null +++ b/assets/css/compile.sh @@ -0,0 +1,24 @@ +#!/bin/sh -e + +HERE=$(dirname $(readlink -f ${0})); + +cd ${HERE}; + +rm -fr fonts; + +#=============================================================== +docker run -u$(id -u):$(id -g) -v${HERE}:/x -w/x --rm -i node:16.6.0-alpine3.14 sh <<'EOF' +#=============================================================== + +npm install; +npm run build; + +#=============================================================== +EOF +#=============================================================== + +mv out/theme.css .; +mv out/fonts .; + +rm -fr node_modules; +rm -fr out; |