使用vue-cli搭建,由单页改为多页,增强express服务器支持,添加axios,可请求后台接口及其他服务器地址。可以作为小型vue多页应用的框架。连接其他地址修改config中的地址即可。
A Vue.js project
# 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
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.