- 集成
vue-router
,vuex
,axios
。 - 集成路由过渡效果。
- 集成
axios
的api至全局的Vue.http
,实例的this.$http
。 - 集成
axios
的拦截器,对请求进行Header拦截操作,并实现Loading
效果。 - 集成
v-keep-scroll
指令 支持在keep-alive
组件内保存任意div滚动条位置。 - 使用
bowl.js
对生产环境的的js/css
进行本地缓存。 - 使用
Webpack2
的System.import
进行异步路由组件加载,并实现加载进度条的展现(参考nuxt.js
实现)。 - 使用
vue-router
的beforeEach
实现单页切换修改document.title
。 - 使用
vuex-localstorage
对vuex的状态持久化。 - 使用
optimize-css-assets-webpack-plugin
进行css压缩。
$ npm install vue-cli -g
$ vue init shmy/starter <your-project>
$ cd <your-project>
$ npm install
$ npm run dev