smaller tailwind build for emails

This commit is contained in:
2023-02-11 13:05:13 +02:00
parent e62244acae
commit a8fbf2d016
7 changed files with 1374 additions and 15 deletions

14
bin/build Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env sh
# see also watch, the main css is the same without -w (watch)
tailwindcss -i app/assets/stylesheets/merged.tailwind.css \
-o app/assets/stylesheets/merged/merged.css \
-c config/tailwind.config.js
# the second rn is for emails,
# without prose, preflight and app styles (ie just views)
# to get to about 30% size
tailwindcss -i app/assets/stylesheets/merged.tailwind.css \
-o app/assets/stylesheets/merged/merged.email.css \
-c config/tailwind.email.js