![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
文章平均质量分 93
以范特西之名╮
这第一名到底要多强
展开
-
Vue-CLI脚手架详解
title: Vue CLI脚手架详解tags:VueVueCLIcategories:Vueabbrlink: 5277date: 2020-06-12 14:22:00什么是Vue CLI如果你只是简单写几个Vue的Demo程序, 那么你不需要Vue CLIn如果你在开发大型项目, 那么你需要, 并且必然需要使用Vue CLI使用Vue.js开发大型应用时,我们需要考虑代码目录结构、项目结构和部署、热加载、代码单元测试等事情。如果每个项目都要手动完成这些工作,那无.原创 2020-09-28 20:32:08 · 11959 阅读 · 2 评论 -
Webpack使用Vue
Webpack配置使用Vue首先把上篇所写的代码复制一份。接着引入vue。通过npm install vue --save下载接着在main.js中导入vue并编写接着编写index.html。添加id,使用差值表达式使用npm run build重新打包项目。查看页面发现报错You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compi原创 2020-09-28 20:30:06 · 7941 阅读 · 0 评论 -
Vue项目使用细节
Runtime-compiler和Runtime-only的区别当我们使用Vue CLI2创建项目的时候,会提示让我们选择使用什么版本的VueRuntime + Compiler: recommended for most users(推荐给大多数用户)Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render fu原创 2020-09-28 20:24:40 · 8280 阅读 · 0 评论