Skip to content

Commit

Permalink
use react-hot-loader and cli webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hutchison committed Feb 3, 2015
1 parent 8f85ab5 commit 01220b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
26 changes: 0 additions & 26 deletions examples/server.js

This file was deleted.

8 changes: 3 additions & 5 deletions examples/webpack.config.js
@@ -1,12 +1,10 @@
var webpack = require('webpack');

module.exports = {
devtool: 'source-map',
entry: './index',
output: {
path: __dirname,
filename: 'bundle.js',
publicPath: '/'
filename: 'bundle.js'
},
resolveLoader: {
modulesDirectories: ['..', 'node_modules']
Expand All @@ -16,7 +14,7 @@ module.exports = {
},
module: {
loaders: [
{ test: /\.jsx?$/, loaders: ['jsx?harmony'] },
{ test: /\.js$/, loaders: ['react-hot-loader', 'jsx-loader?harmony'] }
]
},
plugins: [
Expand All @@ -25,4 +23,4 @@ module.exports = {
'../../modules/index'
)
]
};
};
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -40,6 +40,7 @@
"jsx-loader": "0.12.1",
"path": "0.4.9",
"react": "0.12.0",
"react-hot-loader": "^1.1.4",
"react-router": "0.10.2",
"request": "2.46.0",
"webpack": "1.4.8",
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-examples
@@ -1,3 +1,3 @@
#!/bin/sh
cd examples
node server.js
webpack-dev-server -d --hot --inline --display-reasons --display-error-details --progress --colors --display-chunks

0 comments on commit 01220b4

Please sign in to comment.