mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-05-03 09:13:43 +02:00
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
const path = require('path');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
const commonConfig = {
|
|
output: {
|
|
path: path.resolve('./build'),
|
|
filename: '[name].js'
|
|
},
|
|
node: {
|
|
__dirname: true
|
|
},
|
|
mode: 'development',
|
|
module: {
|
|
rules: [
|
|
{
|
|
exclude: /(node_modules)/,
|
|
loader: 'babel-loader',
|
|
test: /\.js$/
|
|
},
|
|
{
|
|
use: 'node-loader',
|
|
test: /\.node$/
|
|
}
|
|
]
|
|
},
|
|
externals: [ {
|
|
'jitsi-meet-electron-utils': 'require(\'jitsi-meet-electron-utils\')'
|
|
} ],
|
|
resolve: {
|
|
modules: [
|
|
path.resolve('./node_modules')
|
|
]
|
|
}
|
|
};
|
|
|
|
module.exports = [
|
|
Object.assign({
|
|
target: 'electron-main',
|
|
entry: { main: './main.js' }
|
|
},
|
|
commonConfig),
|
|
Object.assign({
|
|
target: 'electron-renderer',
|
|
entry: { renderer: './windows/jitsi-meet/src/index.js' },
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
title: 'Jitsi Meet',
|
|
template: path.resolve('./templates/index.html')
|
|
})
|
|
]
|
|
},
|
|
commonConfig)
|
|
];
|