Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 958 Bytes

README.md

File metadata and controls

51 lines (41 loc) · 958 Bytes

vue-zhihudaily

使用Vue2 + vue-router + vuex 开发的知乎日报

代码结构

代码结构(使用工具treer生成):

src
├─App.vue
├─main.js
├─store
|   └store.js
├─router
|   └index.js
├─components
|     ├─Carousel.vue
|     ├─List.vue
|     ├─NewsDetail.vue
|     └NewsList.vue
├─common
|   └util.js
├─assets
|   ├─logo.png
|   ├─top_logo.png
|   ├─css
|   |  ├─reset.css
|   |  └zhihu_base.css
├─api
|  └index.js

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

参考

知乎API分析