Skip to content

Instantly share code, notes, and snippets.

@didierfranc
Created July 2, 2016 09:16
Show Gist options
  • Save didierfranc/ee9f60eece1179944ea52c7c382efbb9 to your computer and use it in GitHub Desktop.
Save didierfranc/ee9f60eece1179944ea52c7c382efbb9 to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/hotReload'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
include: path.join(__dirname, 'src')
}]
},
target: 'electron-main',
node: {
__dirname: false,
__filename: false
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment