LiveReload
LiveReload plugin for SublimeText
Details
Installs
- Total 744K
- Win 540K
- Mac 125K
- Linux 79K
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 17 | 18 | 15 | 35 | 19 | 24 | 39 | 0 | 0 | 31 | 34 | 36 | 18 | 39 | 45 | 45 | 30 | 41 | 15 | 24 | 31 | 36 | 40 | 50 | 44 | 32 | 30 | 36 | 49 | 60 | 42 | 36 | 16 | 24 | 25 | 22 | 42 | 47 | 30 | 22 | 32 | 26 | 46 | 35 | 33 | 32 |
Mac | 10 | 7 | 8 | 14 | 3 | 6 | 8 | 0 | 0 | 7 | 11 | 5 | 3 | 13 | 5 | 10 | 7 | 11 | 2 | 3 | 9 | 11 | 11 | 9 | 8 | 5 | 9 | 8 | 13 | 5 | 16 | 10 | 6 | 3 | 6 | 11 | 3 | 9 | 10 | 6 | 7 | 12 | 12 | 12 | 9 | 7 |
Linux | 0 | 3 | 2 | 3 | 2 | 1 | 3 | 0 | 0 | 4 | 2 | 1 | 2 | 3 | 2 | 4 | 3 | 8 | 6 | 3 | 4 | 6 | 5 | 2 | 4 | 7 | 3 | 3 | 3 | 7 | 5 | 6 | 1 | 5 | 4 | 2 | 0 | 1 | 3 | 12 | 3 | 3 | 2 | 5 | 0 | 2 |
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