使用技术栈: webpack + vuejs+ vuex + axios + vue-router
proxyTable: {
'/api': {
target: 'http://open.douyucdn.cn/api/RoomApi',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
},
'/category': {
target: 'https://m.douyu.com/category',
changeOrigin: true,
pathRewrite: {
'^/category': ''
}
}
}
# install dependencies
npm install or yarn install
# serve with hot reload at localhost:8080
npm run dev or yarn run dev
# build for production with minification
npm run build