Disabled webpack HMR. See #2

This commit is contained in:
Michel Weststrate 2016-03-14 10:27:34 +01:00
parent 162f722ef9
commit 6c0878487f
3 changed files with 6 additions and 10 deletions

View file

@ -5,7 +5,6 @@ module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/index'
],
output: {
@ -13,17 +12,13 @@ module.exports = {
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
resolve: {
extensions: ['', '.js', '.ts', '.tsx']
},
module: {
loaders: [{
test: /\.tsx?$/,
loaders: ['react-hot', 'ts-loader'],
loaders: ['ts-loader'],
include: path.join(__dirname, 'src')
}]
}