christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.39k stars 292 forks source link

babel-node to start production server ok ? #30

Closed tim-field closed 8 years ago

tim-field commented 8 years ago

I noticed that babel-node recommends against its use in production. Do you think this is something we should worry about ?

https://babeljs.io/docs/usage/cli/#babel-node

https://github.com/christianalfoni/webpack-express-boilerplate/blob/master/package.json#L23

christianalfoni commented 8 years ago

Yeah, I would suggest packaging your server using a build script for production. Just create a webpack config for it and an npm script that runs webpack with the config, pointing to your server file. Then use that in production :)