Cleanup assets

This commit is contained in:
2024-04-14 13:22:29 +10:00
parent b788bce169
commit 0af38d688f
19 changed files with 336 additions and 247 deletions

View File

@@ -99,16 +99,22 @@ namespace :blog do
end
namespace :tailwind do
task :watch do
system("npx tailwindcss -i ./slices/main/assets/css/app.css -o ./public/assets/_main/app.css --watch")
end
desc "Watch and compile your Tailwind CSS on file changes"
task :watch do
system(
"npx",
"tailwindcss",
"--input", "app/assets/css/tailwind.css",
"--output", "app/assets/builds/tailwind.css",
"--minify",
"--watch"
)
end
task :watch_admin do
system("npx tailwindcss -i ./slices/admin/assets/css/app.css -o ./public/assets/_admin/app.css --watch")
end
task :build do
system("npx tailwindcss -i ./slices/main/assets/css/app.css -o ./slices/main/assets/builds/app.css --minify")
system("npx tailwindcss -i ./slices/admin/assets/css/app.css -o ./slices/admin/assets/builds/app.css --minify")
system("npx tailwindcss -i ./slices/puzzles/assets/css/app.css -o ./slices/puzzles/assets/builds/app.css --minify")
end
end