Skip to content

Commit

Permalink
Prefer installation as regular dependency
Browse files Browse the repository at this point in the history
Most people will use this piece of middleware as a regular
dependency. As such it should not be installed as a dev
dependency.
  • Loading branch information
bripkens committed Apr 11, 2015
1 parent 7cf8623 commit 956a017
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -9,7 +9,7 @@ is then commonly handled using JavaScript with the help of the
[HTML5 History API](http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-history-interface).
This results in issues when the user hits the refresh button or is directly
accessing a page other than the landing page, e.g. `/help` or `/help/online`
as the web server bypasses the index file to locate the file at this location.
as the web server bypasses the index file to locate the file at this location.
As your application is a SPA, the web server will fail trying to retrieve the file and return a *404 - Not Found*
message to the user.

Expand All @@ -28,7 +28,7 @@ whenever there is a request which fulfils the following criteria:
The middleware is available through NPM and can easily be added.

```
npm install --save-dev connect-history-api-fallback
npm install --save connect-history-api-fallback
```

Import the library
Expand Down Expand Up @@ -104,4 +104,4 @@ Alternatively use your own logger
```javascript
var middleware = history();
history.setLogger(console.log.bind(console));
```
```

0 comments on commit 956a017

Please sign in to comment.