![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
文章平均质量分 81
依旧恋夕阳
生命不息,奋斗不止
展开
-
Vue出现 及 每个文件主要内容
Vue出现1. entry-runtime-with-compiler.js2. runtime/index.js3. core/index.js4. instance/index.js注:列出的内容均为主线方法1. entry-runtime-with-compiler.js扩展$mount:处理el或者template,编译为render...Vue.prototype.$mount = function ( el?: string | Element, hydrating?: boo原创 2021-12-29 17:51:45 · 346 阅读 · 0 评论 -
vue构建流程 el,template, render优先级
vue构建流程 el,template, render优先级1. package.json2. scripts/config.js ——> web-full-dev3. src/platforms/web/entry-runtime-with-compiler.js1. package.json"scripts": { "dev": "rollup -w -c scripts/config.js --sourcemap --environment TARGET:web-full-dev"}原创 2021-12-27 14:56:15 · 546 阅读 · 0 评论