const path = require('path') module.exports = ['web', 'node'].map( target => ({ name: target, mode: 'production', entry: './radiomanifest.js', target: [target], output: { path: path.resolve(__dirname, 'dist'), filename: 'radiomanifest-' + target + '.bundle.js', clean: false } }) )