This commit is contained in:
qianguyihao
2018-05-02 21:31:28 +08:00
parent c2f94754ab
commit fdec976206
7 changed files with 84 additions and 10 deletions

View File

@@ -304,7 +304,7 @@ $ vue init webpack VueDemo02
```
cd /Users/smyhvae/Dropbox/workspace/Mac/VueDemo02
cnpm install
npm install
```
备注:我们在 GitHub上下载的任何Vue有关的项目并没有包含 `node_modules`,第一步都是要首先执行 cnpm install`node_modules`里的包下载下来。我们发给同事的工程文件,建议也不要包含 `node_modules`
@@ -314,7 +314,7 @@ cnpm install
3让项目跑起来
```
cnpm run dev
npm run dev
```
这个空的项目就可以在浏览器上跑起来。
@@ -327,7 +327,7 @@ cnpm run dev
## vue 项目结构分析
![](http://img.smyhvae.com/20180303_1010.png)
![](http://img.smyhvae.com/20180501_2100.png)
- buid打包配置的文件夹
@@ -381,7 +381,6 @@ cnpm run dev
本文参考链接:
- [Get全栈技能点 Vue2.0/Node.js/MongoDB 打造商城系统](https://coding.imooc.com/class/chapter/113.html)