-
Notifications
You must be signed in to change notification settings - Fork 3.4k
synced updates in cookbook #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
你必须安装好 Chrome 和 VS Code。同时请确保自己在 VS Code 中安装了 [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) 扩展的最新版本。 | ||
|
||
请通过 [Vue CLI](https://github.com/vuejs/vue-cli),遵循它的 README 中的安装文档安装和创建一个项目。然后进入这个新创建的应用的目录,打开 VS Code。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
安装并创建
|
||
### 在 Chrome Devtools 中展示源代码 | ||
|
||
在你可以从 VS Code 调试你的 Vue 组件之前,你需要更新 webpack 配置以构建 source map。我们做了这件事之后,我们的调试器就有机会将一个被压缩的文件中的代码对应回其源文件相应的位置。这会确保你可以在一个应用中调试,即便你的资源已经被 webpack 优化过了也没关系。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删掉一些你、你的、我们?
|
||
``` | ||
npm start | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 code block 应该有缩进
* 订阅你的应用的某个具体部分的状态,以便快速调试 | ||
* 组件依赖可视化,且允许你收起/展开某个具体的依赖树视图 | ||
|
||
 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vuetron 层级结构?
Ref: vuejs/v2.vuejs.org@c3c5949...c3d2cdf
这批 diff 的最后一部分
之前另外两部分分别是 #698 #699 再加上新版 components 的部分
谢谢