Skip to content

Commit a07b624

Browse files
author
buaiping
committed
temp
0 parents  commit a07b624

File tree

7 files changed

+45
-0
lines changed

7 files changed

+45
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vue/

docs/.nojekyll

Whitespace-only changes.

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Headline
2+
3+
> An awesome project.

docs/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [源码调试](源码调试)

docs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Document</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="description" content="Description">
8+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
9+
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
10+
</head>
11+
<body>
12+
<div id="app"></div>
13+
<script>
14+
window.$docsify = {
15+
name: 'vue源码解析',
16+
repo: '',
17+
loadSidebar: true,
18+
}
19+
</script>
20+
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
21+
</body>
22+
</html>

docs/源码调试.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 源码调试
2+
3+
## 第一步、克隆vue项目
4+
5+
`git clone https://github.com/vuejs/vue.git`
6+
7+
## 第二步、在`package.json`文件中的`dev`命令中添加一个`-m`的参数
8+
至于为什么要加一个`-m`的参数,`-m`就是要生成`sourceMap`文件,生成sourceMap文件才能在源代码中打断点调试
9+
10+
```code
11+
"dev": "rollup -w -m -c scripts/config.js --environment TARGET:web-full-dev",
12+
```
13+
14+
## 第三步、在html文件中引入`vue.js`
15+
16+
## 结果
17+
![入口处调试](https://user-gold-cdn.xitu.io/2020/2/28/1708c1f586e98bab?w=1672&h=1112&f=png&s=212354)

vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 2f1f8e9a837239e30c7af7974242bbc87b4bb9db

0 commit comments

Comments
 (0)