LiveReload
LiveReload plugin for SublimeText
Details
Installs
- Total 752K
- Win 545K
- Mac 127K
- Linux 80K
Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 10 | 40 | 39 | 38 | 30 | 18 | 23 | 36 | 23 | 34 | 28 | 28 | 13 | 22 | 41 | 31 | 37 | 50 | 21 | 17 | 18 | 34 | 22 | 32 | 45 | 22 | 22 | 25 | 32 | 40 | 32 | 39 | 33 | 21 | 35 | 37 | 47 | 38 | 31 | 34 | 18 | 25 | 20 | 27 | 20 | 34 |
Mac | 2 | 12 | 6 | 13 | 11 | 0 | 2 | 4 | 13 | 6 | 3 | 8 | 3 | 3 | 10 | 14 | 12 | 12 | 8 | 8 | 3 | 13 | 11 | 11 | 12 | 8 | 6 | 8 | 8 | 9 | 11 | 15 | 6 | 8 | 6 | 9 | 7 | 9 | 19 | 14 | 8 | 3 | 9 | 5 | 5 | 13 |
Linux | 1 | 6 | 3 | 0 | 3 | 1 | 1 | 2 | 2 | 6 | 12 | 3 | 2 | 5 | 4 | 4 | 4 | 1 | 7 | 3 | 1 | 2 | 3 | 3 | 5 | 4 | 3 | 0 | 3 | 2 | 3 | 6 | 5 | 4 | 9 | 3 | 3 | 2 | 2 | 5 | 1 | 6 | 5 | 1 | 2 | 5 |
Readme
- Source
- raw.githubusercontent.com
LiveReload for Sublime Text 3
A web browser page reloading plugin for the Sublime Text 3 editor.
Installing
With Package Control:
- Run “Package Control: Install Package” command, find and install
LiveReload
plugin. - Restart ST editor (if required)
Manual install, Linux users
cd ~/.config/sublime-text-3/Packages
rm -rf LiveReload
git clone https://github.com/alepez/LiveReload-sublimetext3 LiveReload
Manual install, OSX users
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -rf LiveReload
git clone https://github.com/alepez/LiveReload-sublimetext3 LiveReload
Using
Enable desired plug-ins via Command Palette (Ctrl+Shift+P) add livereload.js to you html document.
<script>document.write('<script src="http://' + (location.host || '${1:localhost}').split(':')[0] + ':${2:35729}/livereload.js?snipver=1"></' + 'script>')</script>
You can also use one of the extensions listed here http://livereload.com/extensions/
Available plug-ins:
- Compass Preprocessor, compiles .scss, .sass and refreshes page when file is compiled
- Less Preprocessor, compiles .less and refreshes page when file is compiled
- Sass Preprocessor, compiles .scss, .sass with the latest installed sass version and refreshes page when file is compiled
- CoffeeScript Preprocessor, compiles .coffee and refreshes page when file is compiled
- Simple Reload, refresh page when file is saved
- Simple Reload with delay(400ms), wait 400ms then refresh page, when file is saved
Examples
- Simple Reload from http GET request, reloads page on visit to http://localhost:35729/callback/simplereloadplugincallback/on_post_compile
- Send content on change, sends file content to browser console
Sass Preprocessor usage
First, install latest version of sass “bash sudo gem install sass
Activate the plugin in SublimeText3 via the `package settings -> livereload -> plugins -> enable/disable plugins` menu
By default, the plugin save the compiled css in same dir of sources.
You can change this by creating a `sass_config.json` file near your sources:
```json
{
"destination_dir": "../../webroot/css"
}
Plug-in api
https://livereload-for-sublime-text.readthedocs.org/en/latest/
Thanks
The original plugin was written by Janez Troha