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