Quizlet's version of vogue watches an entire directory for changes, and refreshes all your CSS whenever there's a change. Thus, internally managed imports and dependencies refresh correctly. Save a CSS file, watch your web browser automatically reload it!
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Pull request Compare This branch is 31 commits ahead, 3 commits behind andrewdavey:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



Vogue creates a real-time link between your web browser and your file system. When you save a CSS file, used by the HTML page in your browser, Vogue will make the browser reload the stylesheet. Only the stylesheet is reloaded, not the entire page, making it work even for very dynamic/ajax pages.

Vogue is all javascript. It runs a server on Node.js, which will watch the file system. The server accepts WebSocket connections from the client code (which uses socket.io). The client javascript can be loaded into a HTML page using a single script tag.


Run the Vogue server.

vogue --port 8001 /path/to/website

--port : The port used for Vogue's HTTP server. Optional, defaults to 8001.

Multiple directories can be watched by using separating the paths with colons. e.g. /path/to/website:/other/path


Vogue runs a separate HTTP server to the one running your website. To run the demo website, for example, do something like this first:

cd demo
python -m SimpleHTTPServer

Then, from another terminal session, run Vogue:

vogue demo

Open http://localhost:8000 (or whatever the port used by your web server is) to view the demo index page. The demo page has the Vogue client javascript already included. So it will connect to the Vogue server and be watching the two CSS files used by the page.

Try editing the CSS files in the demo/styles directory. Whenever you save, you will see the browser update the reflect the changes made. This is done without reloading the entire page.

Copyright © 2011 Andrew Davey (andrew@equin.co.uk)