在IE中的报错,TypeError: 对象不支持“startsWith”属性或方法,经过添加babel-polyfill解决html
import babel-polyfill for IE9+
直接访问二级路由会404,经过nginx把页面定向到inedx.html,让react-router接管页面路由vue
location / { try_files $uri /index.html }
页面访问速度过慢,因而开启Gzip对数据压缩传输node
gzip on; # 开启Gzip gzip_comp_level 6; # 级别为1-9,9是最高的压缩比 gzip_types *; # 压缩全部类型文件 gzip_vary on; # 添加响应头