1 Star 0 Fork 0

Tunis / vue2-cli-easy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

一、前言

vue-cli-easy 是在 vue-cli 的基础上,添加了 vue-router、vuex、ElementUI依赖。同样的也对异步请求进行了封装处理,大大简化的请求的代码量(使用github 上 elm 项目对于接口 api 请求的代码思路)。

二、使用步骤

1、git clone 仓库到本地。
2、npm install 安装依赖,建议切换到淘宝源下载。
3、npm run dev 启动项目。
4、npm run build 压缩打包。

三、打包上线

当你项目完成后,你想要打包部署到服务器上时,你只需要在 npm run build 之前,对 config 文件夹中的 index.js 进行简单的修改: assetsPublicPath: './', productionSourceMap: false。然后进行打包,目录中会生成一个 dist 的文件夹。只需要将 dist 文件夹扔到服务器中就可以了。

vue2-cli-easy

this is a vue development environment。

MIT License Copyright (c) 2017 codeAllenChinese Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于vue-cli2.x和Element建立的一个vue-cli开发demo 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/tongsli/vue2-cli-easy.git
git@gitee.com:tongsli/vue2-cli-easy.git
tongsli
vue2-cli-easy
vue2-cli-easy
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891