const path = require('path'); module.exports = { mode: 'production', entry: { mobile: './src/public/app/setup.js', }, output: { publicPath: 'app-dist/', path: path.resolve(__dirname, 'src/public/app-dist'), filename: 'setup.js' }, devtool: 'source-map', target: 'electron-main' };