Skip to content

Instantly share code, notes, and snippets.

@njbmartin
Created February 19, 2020 16:31
Show Gist options
  • Save njbmartin/a041a4fcde12e88caf40d687b9b0a542 to your computer and use it in GitHub Desktop.
Save njbmartin/a041a4fcde12e88caf40d687b9b0a542 to your computer and use it in GitHub Desktop.
const path = require('path')
const NodemonPlugin = require('nodemon-webpack-plugin')
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
},
target: 'node',
plugins: [
new NodemonPlugin()
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment