Last active
July 4, 2016 02:28
-
-
Save josephj/468575d6884aeada6b07 to your computer and use it in GitHub Desktop.
Inject livereload.js from server setting. Also use https://github.com/jaytaph/htrouter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddOutputFilterByType SUBSTITUTE text/html | |
Substitute "s|</body>|<script src=\"//localhost:35729/livereload.js\"></script>\n</body>|i" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
subs_filter_types text/html; | |
subs_filter <\/body> <script src=\"\/\/localhost:35729/livereload.js\"></script></body>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment