mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
26 lines
540 B
JavaScript
26 lines
540 B
JavaScript
const path = require('path');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
const baseConfig = require('./webpack.base.config')
|
|
|
|
module.exports = {
|
|
...baseConfig({
|
|
babel: {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: 'commonjs',
|
|
targets: { electron: '31.3' }
|
|
},
|
|
],
|
|
],
|
|
},
|
|
}),
|
|
externals: [nodeExternals()],
|
|
entry: './src/node/main.js',
|
|
output: {
|
|
path: path.resolve(__dirname, '.webpack/main'),
|
|
filename: 'index.js'
|
|
},
|
|
}
|