DTrejo / run.js

Reruns the given node.js file whenever there's a change in the current directory — avoid alt-tabbing to restart your code

Home Page:https://dtrejo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.css file triggering a change on every fetch

Gurpartap opened this issue · comments

Whenever the browser opens a page, loading a stylesheet file, runjs restarts.

Starting: app.js
Express server listening on port 80 in development mode
Redis ready
./public/stylesheets/style.css changed

Starting: app.js
Express server listening on port 80 in development mode
Redis ready

...

Ok so I didn't think of this before. Stylus is generating my .css file. So perhaps the .gitignore thing could help this issue?

Apologies for this, I recommend npm docs dev

Just added support for files in .gitignore not causing a restart:

npm -g install run

Cheers!