mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-18 02:16:11 -05:00
25 lines
486 B
Bash
Executable File
25 lines
486 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
CSS="simple style"
|
|
JS="live"
|
|
|
|
for css in $CSS; do
|
|
if [ -f "$ZS_OUTDIR/css/$css.css" ]; then
|
|
minify -o "$ZS_OUTDIR/css/$css.min.css" "$ZS_OUTDIR/css/$css.css"
|
|
fi
|
|
if [ -f "$ZS_OUTDIR/css/$css.css" ]; then
|
|
rm "$ZS_OUTDIR/css/$css.css"
|
|
fi
|
|
done
|
|
|
|
for js in $JS; do
|
|
if [ -f "$ZS_OUTDIR/js/$js.js" ]; then
|
|
minify -o "$ZS_OUTDIR/js/$js.min.js" "$ZS_OUTDIR/js/$js.js"
|
|
fi
|
|
if [ -f "$ZS_OUTDIR/js/$js.js" ]; then
|
|
rm "$ZS_OUTDIR/js/$js.js"
|
|
fi
|
|
done
|