Skip to content

myadomin/vue-temp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-temp

自己搭建的一套vue+webpack+vuex+vue-router+axios+elementUI+less+mock的开发脚手架

使用

  • npm i 安装包
  • npm start或者npm run dev 启动本地开发环境
  • npm build 打包 urls.js里的url请求同域
  • npm run build-test 打包 urls.js里的url请求到测试服
  • npm run build-prod 打包 urls.js里的url请求到生产服

建议做

  • nginx开启gzip压缩
  • nginx设置Cache-Control: max-age及Etag

mock

  • main.jsimport mock from '@src/mock'

About

自己搭建的一套vue脚手架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published