mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-15 17:27:08 +00:00
25 lines
500 B
JavaScript
25 lines
500 B
JavaScript
var electronPublicApi = ['electron'];
|
|
|
|
var nodeModules = {};
|
|
electronPublicApi.forEach(apiString => {
|
|
nodeModules[apiString] = 'commonjs ' + apiString;
|
|
});
|
|
|
|
module.exports = {
|
|
target: 'node',
|
|
output: {
|
|
filename: 'main.js'
|
|
},
|
|
node: {
|
|
global: false,
|
|
__dirname: false
|
|
},
|
|
externals: nodeModules,
|
|
module: {
|
|
loaders: [
|
|
{test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
|
|
]
|
|
},
|
|
devtool: 'source-map'
|
|
};
|