mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
25 lines
685 B
JavaScript
25 lines
685 B
JavaScript
const path = require('path');
|
|
const baseConfig = require('./webpack.base.config');
|
|
|
|
module.exports = {
|
|
...baseConfig({
|
|
babel: {
|
|
presets: [['@babel/preset-env', { targets: { electron: '31.3' } }]],
|
|
plugins: [
|
|
['@babel/plugin-transform-react-jsx', { pragma: 'h', pragmaFrag: 'Fragment' }],
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-object-rest-spread'
|
|
]
|
|
},
|
|
}),
|
|
entry: {
|
|
background: './src/renderer/background.js',
|
|
overlay: './src/renderer/overlay.js',
|
|
playHLS: './src/renderer/playHLS.js'
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, '.webpack/renderer'),
|
|
filename: '[name].js'
|
|
}
|
|
}
|