2016-12-22 00:59:10 +00:00
|
|
|
var path = require('path');
|
|
|
|
var webpack = require('webpack');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
devtool: 'eval',
|
|
|
|
entry: [
|
2016-12-27 04:43:47 +00:00
|
|
|
'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, 'dist'),
|
|
|
|
filename: 'bundle.js',
|
|
|
|
publicPath: '/static/'
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
new webpack.NoErrorsPlugin()
|
|
|
|
],
|
2016-12-27 04:43:47 +00:00
|
|
|
watchOptions: {
|
|
|
|
poll: true
|
|
|
|
},
|
2016-12-22 00:59:10 +00:00
|
|
|
module: {
|
|
|
|
loaders: [{
|
|
|
|
test: /\.js$/,
|
|
|
|
loaders: ['react-hot', 'babel'],
|
|
|
|
include: path.join(__dirname, 'src')
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
};
|