2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-15 17:27:08 +00:00
nativefier/webpack.config.js

25 lines
500 B
JavaScript
Raw Normal View History

var electronPublicApi = ['electron'];
2016-01-23 03:47:28 +00:00
var nodeModules = {};
electronPublicApi.forEach(apiString => {
nodeModules[apiString] = 'commonjs ' + apiString;
});
2016-01-23 03:47:28 +00:00
module.exports = {
target: 'node',
output: {
filename: 'main.js'
},
node: {
global: false,
__dirname: false
},
externals: nodeModules,
module: {
loaders: [
2016-01-23 18:02:23 +00:00
{test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
]
},
devtool: 'source-map'
2016-01-23 03:47:28 +00:00
};