LiveReload
LiveReload plugin for SublimeText
Details
Installs
- Total 743K
- Win 538K
- Mac 125K
- Linux 79K
Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 18 | 19 | 30 | 29 | 38 | 36 | 39 | 48 | 27 | 37 | 43 | 42 | 40 | 35 | 31 | 36 | 34 | 43 | 47 | 37 | 25 | 29 | 35 | 44 | 40 | 38 | 45 | 35 | 31 | 25 | 28 | 49 | 50 | 48 | 38 | 27 | 26 | 31 | 40 | 28 | 61 | 37 | 26 | 30 | 33 | 53 |
Mac | 2 | 2 | 6 | 6 | 4 | 1 | 7 | 7 | 5 | 7 | 6 | 7 | 10 | 15 | 0 | 5 | 5 | 8 | 7 | 7 | 7 | 2 | 6 | 8 | 5 | 10 | 11 | 11 | 8 | 6 | 17 | 14 | 6 | 5 | 6 | 4 | 3 | 13 | 8 | 5 | 11 | 7 | 5 | 3 | 9 | 7 |
Linux | 3 | 5 | 5 | 4 | 9 | 3 | 3 | 5 | 3 | 7 | 7 | 6 | 9 | 3 | 0 | 0 | 1 | 3 | 12 | 2 | 5 | 5 | 3 | 4 | 3 | 4 | 4 | 2 | 9 | 12 | 2 | 3 | 1 | 4 | 11 | 3 | 3 | 8 | 10 | 5 | 4 | 1 | 2 | 5 | 4 | 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