about summary refs log tree commit diff stats
path: root/internal/builder/builder.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/builder/builder.go')
-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)