BloodHound/webpack.config.development.js

46 lines
973 B
JavaScript
Raw Normal View History

2016-07-26 23:29:06 +00:00
var webpack = require('webpack');
2016-07-27 00:34:53 +00:00
var path = require('path')
2016-07-26 23:29:06 +00:00
var config = {
2017-05-15 18:37:36 +00:00
target: 'electron-renderer',
externals: [{
'electron-config': 'electron-config'
}],
2016-07-26 23:29:06 +00:00
entry: [
'webpack-hot-middleware/client?reload=true&path=http://localhost:9000/__webpack_hmr',
'./src/index',
],
module: {
2017-05-15 18:37:36 +00:00
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
}
}
}
]
2016-07-26 23:29:06 +00:00
},
output: {
path: __dirname + '/dist',
publicPath: 'http://localhost:9000/dist/',
filename: 'bundle.js'
},
resolve: {
2017-05-15 18:37:36 +00:00
extensions: ['.js', '.jsx'],
2016-07-27 00:34:53 +00:00
alias: {
utils: path.resolve(__dirname, 'src', 'js', 'utils.js'),
modals: path.resolve(__dirname, 'src', 'components', 'Modals')
}
2016-07-26 23:29:06 +00:00
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
2016-08-06 07:47:56 +00:00
],
node: {
2016-09-28 14:56:06 +00:00
__dirname: false,
__filename: false
2016-08-06 07:47:56 +00:00
}
2016-07-26 23:29:06 +00:00
};
module.exports = config;