13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
const path = require('path');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
|
|
|
|
module.exports = {
|
|
target: 'node',
|
|
entry: './src/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'bundle.js'
|
|
},
|
|
externals: [nodeExternals()],
|
|
}; |