diff --git a/README.md b/README.md index 0990174..6dc5cb3 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,5 @@ Initial run: * Install Node.js * `npm install` * `npm start` + +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. \ No newline at end of file diff --git a/package.json b/package.json index 5547f02..3f7d1f7 100644 --- a/package.json +++ b/package.json @@ -23,16 +23,15 @@ }, "homepage": "http://mobxjs.github.com/mobx", "devDependencies": { - "react-hot-loader": "^2.0.0-alpha-4", "ts-loader": "^0.8.1", "typescript": "^1.8.2", "webpack": "^1.9.6", "webpack-dev-server": "^1.8.2" }, "dependencies": { - "mobx": "^2.0.0", - "mobx-react": "^3.0.0", - "mobx-react-devtools": "^4.0.1", + "mobx": "^2.0.2", + "mobx-react": "^3.0.1", + "mobx-react-devtools": "^4.0.2", "react": "^0.14.0", "react-dom": "^0.14.0" } diff --git a/webpack.config.js b/webpack.config.js index ad00155..6354211 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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') }] }