insomnia/webpack/webpack.config.electron.babel.js
2016-11-09 18:53:06 -08:00

20 lines
381 B
JavaScript

import path from 'path';
import productionConfig from './webpack.config.production.babel';
export default {
...productionConfig,
entry: [
'./main.development.js'
],
output: {
path: path.join(__dirname, '../build'),
filename: 'main.js',
libraryTarget: 'commonjs2'
},
node: {
__dirname: false,
__filename: false
},
target: 'electron-main'
};