Hi there, I was wondering if anyone used Mern in production already as I'm not yet clear about the production build and usage. It clearly says in the babel-register hook docs that it is not meant for production use, and yet Mern package.json starts index.js on "start:pro" script, which includes a babel-register hook. the build script seems to only refer to the client. What about the server? How do we build it? (es6 to es5) how do we start it in a production environment? Cheers Ajar
Just wanted to share this with you.. Not super robust and pretty much tested with the boilerplate but its a start: hashnode.com/post/deploying-mernio-to-heroku-succ…
Prashant Abhishek
Co-founder at AltCampus
Problem with using babel-register hook is that it slows down deployment time a bit because it transpiles ES6 to ES5 in run time. We need to rectify this in mern-starter. To use it in production you might want to precompile the app. Take a look at compiling options in babel here.