Skip to content

testxin/QuestionCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

题集前端code

git clone https://github.com/testxin/QuestionCollection.git QuestionCollection
cd QuestionCollection
npm install
npm run gulp

connect-history-api-fallback 伪静态化映射

需要过滤SourceMap因为他的header中没有accept导致判断进入错误 在回调headers下加入判断if (!req.url.toString().match(/.map$/g)) 不走过滤

介绍

用于练手的demo使用了es6+webpack+gulp+redux+react+materialUI
src/api/为测试数据包,并没有用gulp构建,如果测试请把api拷贝到生成的public下面 browser-sync需要用**'connect-history-api-fallback'**实现SPA应用映射

Browser Support

Chrome Firefox IE Opera Safari
Latest ✔ Latest ✔ 9+ ✔ Latest ✔ 6.1+ ✔