时间:2021-05-26
快速的创建一个大型的功能齐全的vue项目模板(初始化项目)
土味解释:快速的创建一个空的vue项目
配置选项
Vue CLI v4.5.11? Please pick a preset: (Use arrow keys)> Default ([Vue 2] babel, eslint) Default (Vue 3 Preview) ([Vue 3] babel, eslint) Manually select features选择功能
Vue CLI v4.5.11? Please pick a preset: Manually select features? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection)>(*) Choose Vue version (*) Babel ( ) TypeScript ( ) Progressive Web App (PWA) Support ( ) Router ( ) Vuex ( ) CSS Pre-processors (*) Linter / Formatter ( ) Unit Testing ( ) E2E Testing选择版本
? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex? Choose a version of Vue.js that you want to start the project with (Use arrow keys)> 2.x 3.x (Preview)是否使用历史模式
? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n)Babel, ESLint等的配置位置
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys)> In dedicated config files In package.json是否存为预置
? Save this as a preset for future projects? (y/N)创建成功
Vue CLI v4.5.11Creating project in D:\MyStudy\myvue2.⚙️ Installing CLI plugins. This might take a while...> core-js@3.9.1 postinstall D:\MyStudy\myvue2\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> ejs@2.7.4 postinstall D:\MyStudy\myvue2\node_modules\ejs> node ./postinstall.jsadded 1208 packages from 928 contributors in 21.836s61 packages are looking for fundingrun `npm fund` for details🚀 Invoking generators...📦 Installing additional dependencies...added 5 packages from 1 contributor in 4.671s61 packages are looking for fundingrun `npm fund` for details ⚓ Running completion hooks...📄 Generating README.md...🎉 Successfully created project myvue2. 👉 Get started with the following commands:$ cd myvue2$ npm run serve进入项目 目录
> cd myvue2启动服务
> npm run serve到此这篇关于vue脚手架项目创建步骤详解的文章就介绍到这了,更多相关vue脚手架项目创建内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
步骤创建vue的脚手架npminstall-g@vue/clivueinitwebpack绑定git项目cdexisting_foldergitinitgitr
安装脚手架(vue-cli)$npminstall@vue/cli-g//全局安装最新的脚手架创建项目$vuecreatevue-demo在创建项目的时候可以使
基础知识1.使用脚手架创建项目并启动1.1安装脚手架:npminstall-gcreate-react-app1.2使用脚手架创建项目:create-react
前言vue-cli是一个官方发布vue.js项目脚手架,Vue-cli可以快速帮助我们创建一个项目,这是官方给我们提供的脚手架。下面我说一下vue-cli的使用
VUE脚手架下载1.第一步全局安装脚手架cnpmi@vue/cli-g2.第二步创建项目创建文件夹,打开文件命令窗口vuecreate自己创建的项目名3.有两个