connect-history-multi-fallback
v1.0.0
Published
Provides a fallback for non-existing directories of multi page so that the HTML 5 history API can be used.
Downloads
1
Readme
React单页多页混用history API fallback
项目介绍
- React单页多页混用时防止404问题的插件。
目录结构
+lib 库目录
使用方法
npm install connect-history-multi-fallback
const app = express();
app.use('/', require('connect-history-multi-fallback')());
app.static('xxx');