创建一个vue项目,vue-cli,webpack

时间:2023-03-08 16:56:10
,换成淘宝源;
npm config set registry https://registry.npm.taobao.org/
检查是否修改成功
npm config get registry ,安装vue脚手架
npm install -g vue-cli ,建一个项目
vue init webpack youDemo 配置列表:
E:\workspace\jc_test\vue
λ vue init webpack fjc_vue ? Project name fjc_vue
? Project description A Vue.js project
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recommended) npm vue-cli · Generated "fjc_vue". ,项目跑起来
npm run dev ,
npm run build
就创建了一个dist文件,压缩后的文件