Tumortisch-Dist/resources/app/node_modules/electron-process-manager/webpack.config.js
2021-06-15 16:00:08 +02:00

25 lines
485 B
JavaScript

const webpack = require('webpack');
const path = require('path');
const BUILD_DIR = path.resolve(__dirname, 'dist');
const config = {
entry: path.resolve(__dirname, 'src/ui/index.js'),
output: {
path: BUILD_DIR,
filename: 'ui-bundle.js'
},
module : {
loaders : [
{
test: /\.(jsx|js)?$/,
loader : 'babel-loader',
include: path.resolve(__dirname, 'src/ui')
}
]
},
target: 'electron-renderer'
};
module.exports = config;