Created
February 21, 2018 08:48
-
-
Save morozVA/145cd383d555c39279e0b3840d24e9bc to your computer and use it in GitHub Desktop.
livereload
This file contains 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
1.устанавливаете плагин LiveReload в chrome | |
2. устанавливаете LiveReload в Sublime Text 3 | |
3. в Sublime Text 3 заходите в Preferences > Package Settings > LiveReload > Setting - Default | |
4. пишете | |
{ | |
"enabled_plugins": [ | |
"SimpleReloadPlugin", | |
"SimpleRefresh" | |
] | |
} | |
5. нажимаете на значок плагина в chrome он подключается к Sublime Text 3. | |
6. пользуетесь! | |
В Chrome работает, но перед закрывающим тэгом боди пропишите | |
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment