brunch / auto-reload-brunch

Adds automatic browser reloading support to brunch.
88 stars 30 forks source link

Auto reload with Flo ? #52

Closed ggrossetie closed 9 years ago

ggrossetie commented 9 years ago

Hi,

It's my first project with Brunch and I want to use this plugin to do live reload. I have a dead-simple project with the following brunch-config:

exports.config =
  plugins:
    autoReload:
      enabled:
        css: on
        js: on
        assets: on
      port: [8888]
  files:
    javascripts:
      joinTo: 'app.js'
    stylesheets:
      joinTo: 'app.css'
    templates:
      joinTo: 'app.js'

I also installed flo-fb Chrome extension. I can see that brunch is doing great:

$ dead-simple> brunch w --server
07 Nov 22:25:54 - info: application started on http://localhost:3333/
07 Nov 22:25:54 - info: compiled 2 files and 1 cached into 2 files, copied 2 in 268ms
07 Nov 22:26:14 - info: compiled in 67ms
07 Nov 22:27:08 - info: compiled flatty.css into app.css in 192ms

flo-fb is connected:

[session] Started

but nothing is happening... I'm doing something wrong ? the documentation is pretty straightforward but how the browser is suppose to listen ?

Thanks :smile:

ggrossetie commented 9 years ago

Hmm I think I get it, the auto-realod.js file is copied into app.js. I will remove flo-fb and debug a little bit further.

ggrossetie commented 9 years ago

Ok this is working great, sorry for the noise and good job :+1: