vogue
vogue copied to clipboard
fs.watchFile doesn't work on Windows
Starting vogue (the path is correct) resultst in the following error.
Watching file: D:\projekti\poc\node\public\stylesheets\skeleton.css
fs.js:734
throw new Error('use fs.watch api instead');
^
Error: use fs.watch api instead
at Object.watchFile (fs.js:734:11)
at Watcher.startWatching (C:\Users\jernej\AppData\Roaming\npm\node_modules\vogue\Watcher.js:57:8)
at VogueClient.<anonymous> (C:\Users\jernej\AppData\Roaming\npm\node_modules\vogue\VogueClient.js:32:18)
It's a known issue with node on windows as mentioned in issue #31 and https://github.com/jashkenas/coffee-script/issues/1803. Fixed in my fork - jlogar/vogue@9494f5e65f2dc6c3283a713d01701707e9a92ec7.
You probably will not be doing a pull because of backwards compatibility?
You can do backwards compatibility without problems. We did it in a similar project called livestyle. https://github.com/One-com/livestyle/blob/master/lib/installLiveCssFileWatcherInServer.js#L92-122