all repos — vite @ 5c55338e620638cada7c5415e54424a6480accf6

a fast (this time, actually) and minimal static site generator

Breh
Anirudh Oppiliappan x@icyphox.sh
Wed, 04 Nov 2020 11:28:42 +0530
commit

5c55338e620638cada7c5415e54424a6480accf6

parent

c720289599cf73858c8150484d1b3fdafcaa5595

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M build.gobuild.go

@@ -93,7 +93,7 @@ htmlFile.Close()

} func viteBuild() { - if cfg.Prebuild != "" { + if len(cfg.Prebuild) == 0 { printMsg("executing pre-build actions...") execute(cfg.Prebuild) }

@@ -134,7 +134,7 @@ }

printMsg("site build complete") printMsg("generating feeds...") generateRSS(posts, cfg) - if cfg.Postbuild != "" { + if len(cfg.Postbuild) == 0 { printMsg("executing post-build actions...") execute(cfg.Postbuild) }