
vue cli
小主早安
这个作者很懒,什么都没留下…
展开
-
不论你创建runtime+compiler和runtime-only是哪种项目,App.vue里面的template
不论你创建runtime+compiler和runtime-only是哪种项目,App.vue里面的template是怎么回事?是由谁来处理的?是我们之前安装的npm install vue-loader vue-template-compiler --save-dev这个是用来解析.vue文件的。其中。vue-template-compiler这个是用来解析App.vue里面的template。把它解析成render函数的...原创 2020-12-01 14:52:19 · 153 阅读 · 0 评论 -
vue cli2 创建项目 runtime+compiler和runtime-only的选择
runtime+compiler和runtime-only的区别:区别在于main.jsruntime–compilertemplate–ast–render-vdom-UIruntime-onlyrender–vdom-UI1.这个性能更高2.代码量更少我们可以在runtime+compiler的mian.js里面把代码改写一下:import Vue from 'vue'import App from './App'Vue.config.productionTip = false原创 2020-12-01 14:47:53 · 337 阅读 · 0 评论 -
如何关闭vue cli2的 useEslint 是否设置语法检查
在项目下面的config文件夹下面的index.js的第26行有一个useEslint:true改成false即可原创 2020-12-01 14:06:45 · 647 阅读 · 0 评论 -
E:\workplace\vuework\vuecli2test>npm run dev
原创 2020-12-01 13:55:22 · 94 阅读 · 0 评论 -
创建脚手架vue cli项目
1.vue init webpack my-project第4步的时候选择no,第5步的lint是限制的意思,eslint对es代码进行限制。就是对js代码进行限制,ESLint是一个JavaScript代码静态检查工具.选择y Standard (https://github.com/standard/standard) 这个是标准的,我们一般选择这个 Airbnb (https://github.com/airbnb/javascript) 这个是爱彼迎公司的标准 none (原创 2020-12-01 10:54:37 · 131 阅读 · 0 评论 -
安装脚手架 vue cli报错:581 error code EINTEGRITY
574 timing stage:runTopLevelLifecycles Completed in 712190ms575 verbose stack Error: sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== integrity checksum failed when using sha512: wanted sha512-BLbiRkiBzAwsjut原创 2020-12-01 09:31:20 · 1043 阅读 · 0 评论