1 2 3 4 5 6 7 8 9 10 11 12 13
const path = require('path'); const nodeExternals = require('webpack-node-externals'); module.exports = { mode: 'production', entry: { index: './src/index.js' }, output: { filename: '[name].js', path: path.resolve(__dirname, './dist') } };