foxhound87 / rfx-stack

RFX Stack - Universal App
MIT License
419 stars 42 forks source link

Best way to toggle browsersync ? #3

Closed 29er closed 8 years ago

29er commented 8 years ago

Love what your doing so far with this @foxhound87 . so i love brwsersync, but im just wondering the cleanest way to toggle it , so I can have 2 clients (browsers) seeing the same list, but with separate views. IE, sort of like a 'chat' app. Sorry im still wrapping my head around some of the code, but wondering if you had any thoughts ?

29er commented 8 years ago

figured it out : )

foxhound87 commented 8 years ago

glad to hear that you like my stack 👍 as you saw, removing browsersync is pretty simple, it's just a webpack plugin. I'm planning to improve the project to give more flexibility and reduce deps.

foxhound87 commented 8 years ago

Note that browsersync is intended to be used only for the development enviroment. For what you want to achieve, you need to check out the feathers docs: http://docs.feathersjs.com/

briandpassa commented 8 years ago

curious how you cleanly disabled the plugin. newbie here

29er commented 8 years ago

@briandpassa I just removed the plugin declaration in config.client.dev.js ,

  new BrowserSyncPlugin({
    host: Config.browsersync.host,
    port: Config.browsersync.port,
    proxy: ['http://', Config.web.host, ':', Config.web.port].join(''),
  }, { reload: false }),