25 lines
485 B
JavaScript
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;
|