Skip to content

Commit 1e1abd0

Browse files
authored
Merge pull request #76 from admin-golang/live-reload
Live reload
2 parents fd44ac0 + 81528ad commit 1e1abd0

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,9 @@ func main() {
9090

9191

9292
For more complex examples, refer to the `examples` directory.
93+
94+
# Development
95+
96+
In order to have `live-reload` working the following chrome extension is needed to be installed:
97+
98+
[https://github.com/chris-ramon/live-reload](https://github.com/chris-ramon/live-reload)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
touch ~/.config/google-chrome/Default/Extensions/live-reload/RELOADME
+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash
22

3-
# pushd examples/infinity-scrolling
4-
5-
# if [ -e ./bin/on_reload.sh ]
6-
# then
7-
# ./bin/on_reload.sh
8-
# fi
3+
if [ -e ./bin/on_reload.sh ]
4+
then
5+
./bin/on_reload.sh
6+
fi
97

108
go run main.go

0 commit comments

Comments
 (0)