Notica/webpack.config.js

31 lines
606 B
JavaScript
Raw Normal View History

2016-12-22 00:59:10 +00:00
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?https://notica.us',
2016-12-22 00:59:10 +00:00
'webpack/hot/only-dev-server',
'./src/index'
],
output: {
path: path.join(__dirname, 'public'),
2016-12-22 00:59:10 +00:00
filename: 'bundle.js',
publicPath: ''
2016-12-22 00:59:10 +00:00
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
watchOptions: {
poll: true
},
2016-12-22 00:59:10 +00:00
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
include: path.join(__dirname, 'src')
}]
}
};