1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-04-13 10:54:56 +00:00

Static changes shouldn't be destructive to existing files

Currently changing css deletes all the site published html when it copies.
Refs 
This commit is contained in:
Ross Lawley 2013-08-20 20:32:32 +01:00
parent eff8457ac9
commit 5aa47a7b07

View file

@ -132,7 +132,7 @@ func main() {
func copyStatic(config *hugolib.Config) error {
// Copy Static to Destination
return fsync.SyncDel(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
return fsync.Sync(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
}
func serve(port string, config *hugolib.Config) {