I would like to use Dojo Toolkit with Meteor.
I first copy the whole Dojo Toolkit tree in /public
Then, I include it on the client side with:
<script src="/dojo/dojo.js" data-dojo-config="async: true"></script>`
Everything works fine, except Meteor is actually monitoring every single file in /public
for changes, so that it can restart the server. This is actually causing a very long delay during the first request on localhost:3000
.
Is there a way of preventing Meteor from watching files from a certain directory?
Dojo Toolkit is 10k+ files so I get the EMFILE error stated here, corrected with
sudo sh -c 'echo 16384 > /proc/sys/fs/inotify/max_user_watches'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…