8000 Added file protocol and HTML5 mode incompatibility mention in documen… · vuejs/vue-router@67ba261 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67ba261

Browse files
hugohilyyx990803
authored andcommitted
Added file protocol and HTML5 mode incompatibility mention in documentation (#565)
* Add english mention on file protocol and HTML5 mode * Add gitbook required package to package.json dev dependencies
1 parent 38e29c0 commit 67ba261

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/en/options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ There are a number of options you can use to customize the router behavior when
1717

1818
**Note**: when using the history mode, the server needs to be [properly configured](http://readystate4.com/2012/05/17/nginx-and-apache-rewrite-to-support-html5-pushstate/) so that a user directly visiting a deep link on your site doesn't get a 404.
1919

20+
**Note**: if you plan to serve your files with the `file://` protocol (for example, when using with [Electron](electron.atom.io)), enabling this mode will break your app. That is because your app URLs would look like `file:///path/to/your/app/index.html/my-route/`, which makes no sense in UNIX filesystem architecture.
21+
2022
#### abstract
2123

2224
- default: false

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"es6-promise": "^3.0.2",
4949
"eslint": "^1.3.1",
5050
"express": "^4.12.3",
51+
"gitbook-plugin-edit-link": "^2.0.2",
52+
"gitbook-plugin-github": "^2.0.0",
5153
"istanbul-instrumenter-loader": "^0.1.3",
5254
"jasmine-core": "^2.3.2",
5355
"karma": "^0.13.8",

0 commit comments

Comments
 (0)
0