docspell/website/scripts/run-styles.sh

12 lines
407 B
Bash
Raw Normal View History

2022-01-27 19:23:15 +00:00
#!/usr/bin/env bash
mkdir -p ./site/public/files
mkdir -p ./site/public/webfonts
echo "Copy webfonts…"
cp node_modules/@fontsource/*/files/* ./site/public/files/
cp node_modules/@fortawesome/fontawesome-free/webfonts/* ./site/public/webfonts/
echo "Running tailwind…"
npx tailwindcss -i ./styles/input.css -o ./site/public/styles.css --config ./tailwind.config.js --postcss ./postcss.config.js "$1"