1. 程式人生 > >vue-cli初始化一個專案

vue-cli初始化一個專案

1,換成淘寶源;
	npm config set registry https://registry.npm.taobao.org/
	檢查是否修改成功
	npm config get registry


2,安裝vue腳手架
	npm install -g vue-cli


3,建一個專案
	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".



4,專案跑起來
	npm run dev

5,
	npm run build
	就建立了一個dist檔案,壓縮後的檔案