mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
livereload: Improve the livereload script build and update to v4.0.2
This script has very infrequent updates, but just copy pasting the minified source creates some potential trust issues. This JS will now be pulled from a Git version and both the unminified and minified version gets written to disk. This way it should be easier to reason about changes in the future. To upgrade, change the commit hash and run `mage generate`. Closes #12451 Closes #6290
This commit is contained in:
@@ -79,8 +79,7 @@ func flagEnv() map[string]string {
|
||||
// Generate autogen packages
|
||||
func Generate() error {
|
||||
generatorPackages := []string{
|
||||
//"tpl/tplimpl/embedded/generate",
|
||||
//"resources/page/generate",
|
||||
"livereload/gen",
|
||||
}
|
||||
|
||||
for _, pkg := range generatorPackages {
|
||||
|
Reference in New Issue
Block a user