Skip to content

christopherscott/auto-reload-brunch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-reload-brunch

Adds automatic browser reloading support to brunch.

The plugin uses WebSocket technology to pass compile events to browser.

Usage

Add "auto-reload-brunch": "x.y.z" to package.json of your brunch app.

Pick a plugin version that corresponds to your minor (y) brunch version.

If you want to use git version of plugin, add "auto-reload-brunch": "git+ssh://git@github.com:brunch/auto-reload-brunch.git".

Because auto reload is often used only for html / style development (because for scripts it would most of the time be quite annoying), by default plugin is disabled. You can enable it by adding a simple script to your page before the other scripts on the page.

<script>
  window.brunch = window.brunch || {};
  window.brunch['auto-reload'] = {enabled: true};
</script>

About

Adds automatic browser reloading support to brunch.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 59.6%
  • CoffeeScript 40.4%