Closed kevinrenskers closed 9 years ago
https://github.com/brunch/auto-reload-brunch/blob/master/vendor/auto-reload.js#L37
You need to set the window.brunch.server
setting on the client side since window.location.hostname
doesn't resolve to anything with the local file. Setting it to 'localhost'
or the like ought to work.
Thank you for your very quick and helpful answer. It's working as expected now.
Hi guys. I'm trying to use brunch with auto-reload-brunch for a node-webkit (now NW.js) project.
My package.json:
My config.coffee:
When I run
npm run watch
(which runsbrunch watch
) I see that the autoreload script is prepended to_public/js/app.js
. However when I then runnpm run open
I get the following error in the console and autoreload doesn't work:Node-webkit opens the local file
file:///Users/kevin/Workspace/slingchat-nw/_public/index.html
, is that maybe the problem? How would I make this work? The whole idea behind node-webkit is of course to open a local file rather then something running off a server.