Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit cdc941d

Browse files
committed
Switch to run example on webpack-dev-server.
1 parent 8bc27b9 commit cdc941d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

examples/basic/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ This example also demonstrates integration with
1313

1414
1. Install dependencies with `npm install` in this directory (make sure it creates a local node_modules)
1515
2. By default, it uses the local version from `src` of react-router-redux, so you need to run `npm install` from there first. If you want to use a version straight from npm, remove the lines in `webpack.config.js` at the bottom.
16-
3. Build with `webpack --watch`
17-
4. Open `index.html`
16+
3. Start build with `npm start`
17+
4. Open [http://localhost:8080/](http://localhost:8080/)
1818

1919
-
2020

examples/basic/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
</head>
77
<body>
88
<div id="mount"></div>
9-
<script src="dist/bundle.js"></script>
9+
<script src="/bundle.js"></script>
1010
</body>
1111
</html>

examples/basic/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react-redux": "^4.3.0",
1010
"react-router": "^2.0.0",
1111
"redux": "^3.2.1",
12-
"react-router-redux": "^4.0.0"
12+
"react-router-redux": "^3.0.0"
1313
},
1414
"devDependencies": {
1515
"babel-core": "^6.4.5",
@@ -24,9 +24,10 @@
2424
"redux-devtools": "^3.1.0",
2525
"redux-devtools-dock-monitor": "^1.0.1",
2626
"redux-devtools-log-monitor": "^1.0.4",
27-
"webpack": "^1.12.13"
27+
"webpack": "^1.12.13",
28+
"webpack-dev-server": "^1.14.1"
2829
},
2930
"scripts": {
30-
"start": "webpack --watch"
31+
"start": "webpack-dev-server --history-api-fallback --no-info --open"
3132
}
3233
}

0 commit comments

Comments
 (0)