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'
self.exclude_paths = [ path.join(app_dir, '.meteor', 'local'), path.join(app_dir, 'public', 'lib') ];
This way I can have as much files as I want in lib, and they don't slow everything down. include path is '/lib/dojo/dojo.js'. – Ha/usr/lib/meteor
. Running OS X and installed through the Meteor script. – Bipod