LiveReload plugin for SM2
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits ahead of sgricci:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
messages
LiveReload.sublime-settings
Main.sublime-menu
README.md
livereload.js
livereload_st2.py
messages.json

README.md

LiveReload for Sublime Text 2

A web browser page reloading plugin for the Sublime Text 2 editor.

Installing

Install with Sublime Package Control, search for LiveReload and install.

Browser extensions

You can use both major LiveReload versions. For old one you can find instructions bellow, for new ones please visit New browser extensions or try self loading version.

Google Chrome extension

Click “Install”. Actually, LiveReload does not access your browser history. The warning is misleading.

If you want to use it with local files, be sure to enable “Allow access to file URLs” checkbox in Tools > Extensions > LiveReload after installation.

Safari extension

For now it only works with self loading version:

<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Firefox 4 extension

Usage

Now, if you are using Safari, right-click the page you want to be livereload'ed and choose “Enable LiveReload”:

If you are using Chrome, just click the toolbar button (it will turn green to indicate that LiveReload is active).


You can also use the Preferences menu to change port, version and type of reloading(full, js,css).