diff options
author | Alan Pearce | 2024-06-25 20:11:32 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-25 20:11:32 +0200 |
commit | 6a90125e49eaf1b09d20ff982b6ff039a1e18580 (patch) | |
tree | 406c793436fe827782e0f2fe3ca351de3deee534 /internal | |
parent | 2fcf88ac2e088cdb7692ccfd7fccce01dd0cd523 (diff) | |
download | website-6a90125e49eaf1b09d20ff982b6ff039a1e18580.tar.lz website-6a90125e49eaf1b09d20ff982b6ff039a1e18580.tar.zst website-6a90125e49eaf1b09d20ff982b6ff039a1e18580.zip |
remove clean step in builder
Diffstat (limited to 'internal')
-rw-r--r-- | internal/builder/builder.go | 7 |
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) |