2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-01 12:20:48 +00:00
nativefier/webpack.config.js
Jia Hao Goh 8f78dd03af Update eslint and use Airbnb style
- Add `npm run lint:fix` command
- Cleanup inferIcon.js logic slightly
2017-04-29 22:52:12 +08:00

25 lines
473 B
JavaScript

const electronPublicApi = ['electron'];
const 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',
};