Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created February 14, 2019 06:53
Show Gist options
  • Select an option

  • Save bbachi/2dccbd89899a1c369ff688b8f653ecc9 to your computer and use it in GitHub Desktop.

Select an option

Save bbachi/2dccbd89899a1c369ff688b8f653ecc9 to your computer and use it in GitHub Desktop.
How to write production ready Node.js Rest API - Javascript version - webpack
const path = require('path');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'api.bundle.js'
},
target: 'node'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment