radiomanifest.js/webpack.config.js

15 lines
329 B
JavaScript

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
}
})
)