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

View File

@ -2,7 +2,7 @@
# Since tailwind does not install into the engine, this will
# watch and recompile during development
# Note: i have merged in a dir next to the app i develop. and run this in a seperate window
# PS, not minified as appicaltion will do that
# PS, not minified as application will do that
# tailwindcss executable must exist (by bundling tailwindcss-rails eg)
tailwindcss -i app/assets/stylesheets/merged.tailwind.css \