all repos — website @ 6a90125e49eaf1b09d20ff982b6ff039a1e18580

My website

remove clean step in builder
Alan Pearce alan@alanpearce.eu
Tue, 25 Jun 2024 20:11:32 +0200
commit

6a90125e49eaf1b09d20ff982b6ff039a1e18580

parent

2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523

1 files changed, 0 insertions(+), 7 deletions(-)

jump to
M internal/builder/builder.gointernal/builder/builder.go
@@ -265,13 +265,6 @@ } 	config.InjectLiveReload = ioConfig.Development
 	compressFiles = !ioConfig.Development
 
-	if ioConfig.Development && ioConfig.Destination != "website" {
-		err = os.RemoveAll(ioConfig.Destination)
-		if err != nil {
-			return nil, errors.WithMessage(err, "could not remove destination directory")
-		}
-	}
-
 	loadCSS()
 
 	return build(ioConfig.Destination, *config)