A Vue.js project
vue项目开发模版可直接下载使用,主要是配置正式环境、测试环境和本地环境的不同的api请求地址,地址一次配置后,不需要每次打包的时候都来切换url,很方便,模版中用了axios和vue-router
主要的修改在config和build(修改了build.js和webpack.prod.conf.js这两个文件)这两个文件夹下
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production
npm run build
# build for test
npm run test
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.