2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-14 00:54:04 +00:00
nativefier/webpack.config.js

25 lines
473 B
JavaScript
Raw Normal View History

const electronPublicApi = ['electron'];
2016-01-23 03:47:28 +00:00
const 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: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
],
},
devtool: 'source-map',
2016-01-23 03:47:28 +00:00
};