forest-express-mongoose
forest-express-mongoose copied to clipboard
How to ignore Babel build artifacts ?
My build will output javascript source map files using Babel. The init function from forest-express-mongoose will try to load these files as they are co-located with other model files after the build. The init function then fails.
Is there a way to ignore certain files or file patterns during this initialization process ?
Hi @cidylle,
Maybe what you could do is:
- Remove the
modelsDiroption in theinitcall. - Ensure that for
mongoose: require('mongoose'), Forest can access all your Mongoose models callingrequire('mongoose').models.
It should work this way. Let me know.