@@ -123,11 +123,32 @@ If your app is not listening for these signals `process.exit(0)` will be called
123123immediately. If a listener is registered, node-dev assumes that your app will
124124exit on its own once it is ready.
125125
126+ ### Ignore paths
127+
128+ If you’d like to ignore certain paths or files from triggering a restart simply
129+ list them in the ` .node-dev.json ` configuration under ` "ignore" ` , e.g.
130+
131+ ``` json
132+ {
133+ "ignore" : [
134+ " client/scripts" ,
135+ " shared/module.js"
136+ ]
137+ }
138+
139+ ```
140+
141+ This might be useful when you are running a [ universal] [ universal-javascript ]
142+ (isomorphic) web app that shares modules across the server and client, e.g.
143+ [ React.js] ( react ) components for server-side rendering, which you don’t want to trigger a
144+ server restart when changed, since it introduces an unnecessary delay.
145+
126146## License
127147
128148### The MIT License (MIT)
129149
130- Copyright (c) 2014 Felix Gnass
150+ Copyright (c) 2014–2015 Felix Gnass
151+ Copyright (c) 2015 Daniel Gasienica
131152
132153Permission is hereby granted, free of charge, to any person obtaining a copy
133154of this software and associated documentation files (the "Software"), to deal
@@ -146,3 +167,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
146167LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
147168OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
148169THE SOFTWARE.
170+
171+
172+ [ react ] : http://facebook.github.io/react/
173+ [ universal-javascript ] : https://medium.com/@mjackson/universal-javascript-4761051b7ae9
0 commit comments