mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Static changes shouldn't be destructive to existing files
Currently changing css deletes all the site published html when it copies. Refs #46
This commit is contained in:
2
main.go
2
main.go
@ -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) {
|
||||
|
Reference in New Issue
Block a user