sinsaludar.com/build.sh
Erick Ruiz de Chavez 6ed5ebd304
Add a build script
2022-04-29 17:45:37 -04:00

11 lines
282 B
Bash
Executable file

#!/usr/bin/env bash
rm -rf dist && mkdir dist
npx tailwindcss -i tailwind.css -o dist/styles.css --minify
hash=$(shasum dist/styles.css | awk '{print $1}')
new_file="styles.$hash.css"
mv dist/styles.css dist/$new_file
sed "s/styles\.css/$new_file/" index.html > dist/index.html