smaller tailwind build for emails
This commit is contained in:
14
bin/build
Executable file
14
bin/build
Executable 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
|
@ -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 \
|
||||
|
Reference in New Issue
Block a user