]> git.maquefel.me Git - brevno-suite/hugo/commit
livereload: Improve the livereload script build and update to v4.0.2
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 2 May 2024 08:35:43 +0000 (10:35 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 10 May 2024 20:33:08 +0000 (22:33 +0200)
commitd02f0622b471d6a8ee805a7a8387a3984694a4ac
tree6e4f35e1d12777d864955d56ec2174308e9ba12e
parent6dfeb9f0388f5acae2c8f2e16d97987899a04d4e
 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
livereload/gen/livereload-hugo-plugin.js [new file with mode: 0644]
livereload/gen/main.go [new file with mode: 0644]
livereload/livereload.go
livereload/livereload.js
livereload/livereload.min.js [new file with mode: 0644]
magefile.go