A vue.js project for V2EX
首页
主题
关于
- 首页不同主题tab切换
- 文章列表模块
- 主题列表和主题搜索
- 关于V2EX信息和清除本地缓存
- 数据本地化
- 上拉加载和下拉刷新
- 欢迎页和Loading模块
扫一扫
本地运行会有跨域问题。按照如下配置可通过node解决跨域问题。但是这个不行,已亲测豆瓣API可以实现跨域,不知道是不是V2EX提供的api是情况。本地开发解决跨域终极方法(仅仅适用于开发环境)--安装谷歌插件 Allow-Control-Allow-Origin: * 即可
dev: {
env: require('./dev.env'),
port: 8088,
autoOpenBrowser: false,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/api':{
target:'http://www.v2ex.com/api',
changeOrigin:true,
pathRewrite:{
'^/api':''
}
}
},
# 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
For detailed explanation on how things work, checkout the guide and docs for vue-loader.