Port asset pipeline to Hanami

This commit is contained in:
2023-11-18 08:26:02 +11:00
parent d28e1d298b
commit cfbab5ab4b
21 changed files with 4747 additions and 573 deletions

View File

@@ -52,3 +52,13 @@ namespace :blog do
end
end
end
namespace :tailwind do
task :watch do
system("npx tailwindcss -i ./app/assets/css/tailwind.css -o ./app/assets/builds/tailwind.css --watch")
end
task :build do
system("npx tailwindcss -i ./app/assets/css/tailwind.css -o ./app/assets/builds/tailwind.css --minify")
end
end