Skip to content

Commit

Permalink
Merge pull request #221 from pablopaul/remove-hmr
Browse files Browse the repository at this point in the history
Remove HMR.
  • Loading branch information
ericelliott committed Apr 18, 2016
2 parents 283dad7 + 1bb7fe2 commit 996958b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ This repo demonstrates pure components. It's based on the [React Transform Boile

* Examples of pure components.
* Pure component factories, so you can use a single React instance, even if you load React from CDN.
* Hot reloading
* Unit test example with tape, demonstrating an easy way to test pure components.

## Getting Started
Expand Down
10 changes: 0 additions & 10 deletions devServer.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.config.dev');

var app = express();
var compiler = webpack(config);

app.use(require('webpack-dev-middleware')(compiler, {
noInfo: true,
publicPath: config.output.publicPath
}));

app.use(require('webpack-hot-middleware')(compiler));

app.get('*', function(req, res) {
res.sendFile(path.join(__dirname, 'index.html'));
Expand Down
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"react",
"reactjs",
"boilerplate",
"hot",
"reload",
"hmr",
"live",
"edit",
"webpack",
"babel",
"react-transform"
Expand Down Expand Up @@ -62,9 +57,7 @@
"tape": "4.5.1",
"updtr": "0.1.10",
"watch": "0.17.1",
"webpack": "1.13.0",
"webpack-dev-middleware": "1.6.1",
"webpack-hot-middleware": "2.10.0"
"webpack": "1.13.0"
},
"dependencies": {
"react": "15.0.1",
Expand Down
6 changes: 0 additions & 6 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
var path = require('path');
var webpack = require('webpack');

module.exports = {
devtool: 'eval',
resolve: {
root: __dirname + '/source'
},
entry: [
'webpack-hot-middleware/client',
'./source/index'
],
output: {
path: path.join(__dirname, 'build'),
filename: 'index.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [{
test: /\.js$/,
Expand Down

0 comments on commit 996958b

Please sign in to comment.