about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 20:11:32 +0200
committerAlan Pearce2024-06-25 20:11:32 +0200
commit6a90125e49eaf1b09d20ff982b6ff039a1e18580 (patch)
tree406c793436fe827782e0f2fe3ca351de3deee534
parent2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523 (diff)
downloadwebsite-6a90125e49eaf1b09d20ff982b6ff039a1e18580.tar.lz
website-6a90125e49eaf1b09d20ff982b6ff039a1e18580.tar.zst
website-6a90125e49eaf1b09d20ff982b6ff039a1e18580.zip
remove clean step in builder
-rw-r--r--internal/builder/builder.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go
index 1181802..900ce15 100644
--- a/internal/builder/builder.go
+++ b/internal/builder/builder.go
@@ -265,13 +265,6 @@ func BuildSite(ioConfig IOConfig) (*Result, error) {
 	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)