ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Live​Reload

by alepez ST3 Top 100

LiveReload plugin for SublimeText

Details

Installs

  • Total 750K
  • Win 543K
  • Mac 126K
  • Linux 80K
Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20
Windows 7 34 25 36 49 31 40 33 15 43 43 50 35 40 23 35 32 43 38 34 45 24 27 33 57 46 49 44 25 28 42 53 53 45 45 24 34 50 37 47 37 44 23 17 36 45
Mac 1 4 8 9 7 12 9 3 5 11 9 7 13 15 4 8 8 9 10 6 16 5 11 8 7 8 13 20 6 7 9 10 14 15 15 5 2 7 10 17 10 9 7 4 11 8
Linux 1 6 5 1 6 7 3 7 3 5 2 2 0 2 4 5 3 3 8 5 1 2 8 3 5 4 5 2 1 5 7 4 5 5 3 2 5 3 4 6 2 9 7 3 5 5
0204060Apr 6Apr 3Mar 31Mar 28Mar 25Mar 22Mar 19Mar 16Mar 13Mar 10Mar 7Mar 4Mar 1Feb 26Feb 23Feb 20Apr 6 Linux: 1 Mac: 1 Windows: 7Apr 5 Linux: 6 Mac: 4 Windows: 34Apr 4 Linux: 5 Mac: 8 Windows: 25Apr 3 Linux: 1 Mac: 9 Windows: 36Apr 2 Linux: 6 Mac: 7 Windows: 49Apr 1 Linux: 7 Mac: 12 Windows: 31Mar 31 Linux: 3 Mac: 9 Windows: 40Mar 30 Linux: 7 Mac: 3 Windows: 33Mar 29 Linux: 3 Mac: 5 Windows: 15Mar 28 Linux: 5 Mac: 11 Windows: 43Mar 27 Linux: 2 Mac: 9 Windows: 43Mar 26 Linux: 2 Mac: 7 Windows: 50Mar 25 Linux: 0 Mac: 13 Windows: 35Mar 24 Linux: 2 Mac: 15 Windows: 40Mar 23 Linux: 4 Mac: 4 Windows: 23Mar 22 Linux: 5 Mac: 8 Windows: 35Mar 21 Linux: 3 Mac: 8 Windows: 32Mar 20 Linux: 3 Mac: 9 Windows: 43Mar 19 Linux: 8 Mac: 10 Windows: 38Mar 18 Linux: 5 Mac: 6 Windows: 34Mar 17 Linux: 1 Mac: 16 Windows: 45Mar 16 Linux: 2 Mac: 5 Windows: 24Mar 15 Linux: 8 Mac: 11 Windows: 27Mar 14 Linux: 3 Mac: 8 Windows: 33Mar 13 Linux: 5 Mac: 7 Windows: 57Mar 12 Linux: 4 Mac: 8 Windows: 46Mar 11 Linux: 5 Mac: 13 Windows: 49Mar 10 Linux: 2 Mac: 20 Windows: 44Mar 9 Linux: 1 Mac: 6 Windows: 25Mar 8 Linux: 5 Mac: 7 Windows: 28Mar 7 Linux: 7 Mac: 9 Windows: 42Mar 6 Linux: 4 Mac: 10 Windows: 53Mar 5 Linux: 5 Mac: 14 Windows: 53Mar 4 Linux: 5 Mac: 15 Windows: 45Mar 3 Linux: 3 Mac: 15 Windows: 45Mar 2 Linux: 2 Mac: 5 Windows: 24Mar 1 Linux: 5 Mac: 2 Windows: 34Feb 28 Linux: 3 Mac: 7 Windows: 50Feb 27 Linux: 4 Mac: 10 Windows: 37Feb 26 Linux: 6 Mac: 17 Windows: 47Feb 25 Linux: 2 Mac: 10 Windows: 37Feb 24 Linux: 9 Mac: 9 Windows: 44Feb 23 Linux: 7 Mac: 7 Windows: 23Feb 22 Linux: 3 Mac: 4 Windows: 17Feb 21 Linux: 5 Mac: 11 Windows: 36Feb 20 Linux: 5 Mac: 8 Windows: 45Apr 6 Linux: 1 Mac: 1 Windows: 7Apr 5 Linux: 6 Mac: 4 Windows: 34Apr 4 Linux: 5 Mac: 8 Windows: 25Apr 3 Linux: 1 Mac: 9 Windows: 36Apr 2 Linux: 6 Mac: 7 Windows: 49Apr 1 Linux: 7 Mac: 12 Windows: 31Mar 31 Linux: 3 Mac: 9 Windows: 40Mar 30 Linux: 7 Mac: 3 Windows: 33Mar 29 Linux: 3 Mac: 5 Windows: 15Mar 28 Linux: 5 Mac: 11 Windows: 43Mar 27 Linux: 2 Mac: 9 Windows: 43Mar 26 Linux: 2 Mac: 7 Windows: 50Mar 25 Linux: 0 Mac: 13 Windows: 35Mar 24 Linux: 2 Mac: 15 Windows: 40Mar 23 Linux: 4 Mac: 4 Windows: 23Mar 22 Linux: 5 Mac: 8 Windows: 35Mar 21 Linux: 3 Mac: 8 Windows: 32Mar 20 Linux: 3 Mac: 9 Windows: 43Mar 19 Linux: 8 Mac: 10 Windows: 38Mar 18 Linux: 5 Mac: 6 Windows: 34Mar 17 Linux: 1 Mac: 16 Windows: 45Mar 16 Linux: 2 Mac: 5 Windows: 24Mar 15 Linux: 8 Mac: 11 Windows: 27Mar 14 Linux: 3 Mac: 8 Windows: 33Mar 13 Linux: 5 Mac: 7 Windows: 57Mar 12 Linux: 4 Mac: 8 Windows: 46Mar 11 Linux: 5 Mac: 13 Windows: 49Mar 10 Linux: 2 Mac: 20 Windows: 44Mar 9 Linux: 1 Mac: 6 Windows: 25Mar 8 Linux: 5 Mac: 7 Windows: 28Mar 7 Linux: 7 Mac: 9 Windows: 42Mar 6 Linux: 4 Mac: 10 Windows: 53Mar 5 Linux: 5 Mac: 14 Windows: 53Mar 4 Linux: 5 Mac: 15 Windows: 45Mar 3 Linux: 3 Mac: 15 Windows: 45Mar 2 Linux: 2 Mac: 5 Windows: 24Mar 1 Linux: 5 Mac: 2 Windows: 34Feb 28 Linux: 3 Mac: 7 Windows: 50Feb 27 Linux: 4 Mac: 10 Windows: 37Feb 26 Linux: 6 Mac: 17 Windows: 47Feb 25 Linux: 2 Mac: 10 Windows: 37Feb 24 Linux: 9 Mac: 9 Windows: 44Feb 23 Linux: 7 Mac: 7 Windows: 23Feb 22 Linux: 3 Mac: 4 Windows: 17Feb 21 Linux: 5 Mac: 11 Windows: 36Feb 20 Linux: 5 Mac: 8 Windows: 45Apr 6 Linux: 1 Mac: 1 Windows: 7Apr 5 Linux: 6 Mac: 4 Windows: 34Apr 4 Linux: 5 Mac: 8 Windows: 25Apr 3 Linux: 1 Mac: 9 Windows: 36Apr 2 Linux: 6 Mac: 7 Windows: 49Apr 1 Linux: 7 Mac: 12 Windows: 31Mar 31 Linux: 3 Mac: 9 Windows: 40Mar 30 Linux: 7 Mac: 3 Windows: 33Mar 29 Linux: 3 Mac: 5 Windows: 15Mar 28 Linux: 5 Mac: 11 Windows: 43Mar 27 Linux: 2 Mac: 9 Windows: 43Mar 26 Linux: 2 Mac: 7 Windows: 50Mar 25 Linux: 0 Mac: 13 Windows: 35Mar 24 Linux: 2 Mac: 15 Windows: 40Mar 23 Linux: 4 Mac: 4 Windows: 23Mar 22 Linux: 5 Mac: 8 Windows: 35Mar 21 Linux: 3 Mac: 8 Windows: 32Mar 20 Linux: 3 Mac: 9 Windows: 43Mar 19 Linux: 8 Mac: 10 Windows: 38Mar 18 Linux: 5 Mac: 6 Windows: 34Mar 17 Linux: 1 Mac: 16 Windows: 45Mar 16 Linux: 2 Mac: 5 Windows: 24Mar 15 Linux: 8 Mac: 11 Windows: 27Mar 14 Linux: 3 Mac: 8 Windows: 33Mar 13 Linux: 5 Mac: 7 Windows: 57Mar 12 Linux: 4 Mac: 8 Windows: 46Mar 11 Linux: 5 Mac: 13 Windows: 49Mar 10 Linux: 2 Mac: 20 Windows: 44Mar 9 Linux: 1 Mac: 6 Windows: 25Mar 8 Linux: 5 Mac: 7 Windows: 28Mar 7 Linux: 7 Mac: 9 Windows: 42Mar 6 Linux: 4 Mac: 10 Windows: 53Mar 5 Linux: 5 Mac: 14 Windows: 53Mar 4 Linux: 5 Mac: 15 Windows: 45Mar 3 Linux: 3 Mac: 15 Windows: 45Mar 2 Linux: 2 Mac: 5 Windows: 24Mar 1 Linux: 5 Mac: 2 Windows: 34Feb 28 Linux: 3 Mac: 7 Windows: 50Feb 27 Linux: 4 Mac: 10 Windows: 37Feb 26 Linux: 6 Mac: 17 Windows: 47Feb 25 Linux: 2 Mac: 10 Windows: 37Feb 24 Linux: 9 Mac: 9 Windows: 44Feb 23 Linux: 7 Mac: 7 Windows: 23Feb 22 Linux: 3 Mac: 4 Windows: 17Feb 21 Linux: 5 Mac: 11 Windows: 36Feb 20 Linux: 5 Mac: 8 Windows: 45

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:

  1. Run “Package Control: Install Package” command, find and install LiveReload plugin.
  2. 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