Delete public/ before every build

This commit is contained in:
ekzyis 2025-07-26 02:56:24 +02:00
parent 1e6149b257
commit b39983296f
16 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
public/**/*.html public/
public/**/*.webp

View File

@ -22,6 +22,9 @@
type = "app"; type = "app";
program = toString (pkgs.writeShellScript "serve" '' program = toString (pkgs.writeShellScript "serve" ''
set -x set -x
rm -r public/
cp -r static/ public/
go run main.go
${pkgs.tailwindcss}/bin/tailwindcss -i input.css -o public/css/tailwind.css ${pkgs.tailwindcss}/bin/tailwindcss -i input.css -o public/css/tailwind.css
${pkgs.caddy}/bin/caddy run --config Caddyfile ${pkgs.caddy}/bin/caddy run --config Caddyfile
''); '');

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB