Skip to content

Commit 6c08784

Browse files
committed
Disabled webpack HMR. See #2
1 parent 162f722 commit 6c08784

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ Initial run:
77
* Install Node.js
88
* `npm install`
99
* `npm start`
10+
11+
For simplicity sake Webpack Hot Module Reloading is disabled. If you want to use HMR, see the [Reactive2015 demo](https://github.com/mobxjs/mobx-reactive2015-demo) to see a valid setup.

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@
2323
},
2424
"homepage": "http://mobxjs.github.com/mobx",
2525
"devDependencies": {
26-
"react-hot-loader": "^2.0.0-alpha-4",
2726
"ts-loader": "^0.8.1",
2827
"typescript": "^1.8.2",
2928
"webpack": "^1.9.6",
3029
"webpack-dev-server": "^1.8.2"
3130
},
3231
"dependencies": {
33-
"mobx": "^2.0.0",
34-
"mobx-react": "^3.0.0",
35-
"mobx-react-devtools": "^4.0.1",
32+
"mobx": "^2.0.2",
33+
"mobx-react": "^3.0.1",
34+
"mobx-react-devtools": "^4.0.2",
3635
"react": "^0.14.0",
3736
"react-dom": "^0.14.0"
3837
}

webpack.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,20 @@ module.exports = {
55
devtool: 'eval',
66
entry: [
77
'webpack-dev-server/client?http://localhost:3000',
8-
'webpack/hot/only-dev-server',
98
'./src/index'
109
],
1110
output: {
1211
path: path.join(__dirname, 'dist'),
1312
filename: 'bundle.js',
1413
publicPath: '/static/'
1514
},
16-
plugins: [
17-
new webpack.HotModuleReplacementPlugin(),
18-
new webpack.NoErrorsPlugin()
19-
],
2015
resolve: {
2116
extensions: ['', '.js', '.ts', '.tsx']
2217
},
2318
module: {
2419
loaders: [{
2520
test: /\.tsx?$/,
26-
loaders: ['react-hot', 'ts-loader'],
21+
loaders: ['ts-loader'],
2722
include: path.join(__dirname, 'src')
2823
}]
2924
}

0 commit comments

Comments
 (0)