Skip to content

Commit

Permalink
Port asset pipeline to Hanami
Browse files Browse the repository at this point in the history
  • Loading branch information
dNitza committed Nov 17, 2023
1 parent d28e1d2 commit cfbab5a
Show file tree
Hide file tree
Showing 21 changed files with 4,777 additions and 603 deletions.
3 changes: 2 additions & 1 deletion Procfile.dev
@@ -1,2 +1,3 @@
web: bundle exec hanami server
css: npx tailwindcss -i ./app/assets/index.css -o ./public/assets/index.css --watch
tailwind: bundle exec rake tailwind:watch
assets: bundle exec hanami assets watch
10 changes: 10 additions & 0 deletions Rakefile
Expand Up @@ -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

0 comments on commit cfbab5a

Please sign in to comment.