建立 vue專案 能同步 git

2021-09-25 11:26:25 字數 1229 閱讀 1253

右鍵 git bash here

輸入 git clone 轉殖位址

複製 .gitignore 排除檔案 放在檔案根目錄

# logs

logs

*.log

# idea files

.idea/

*.iml

# runtime data

pids

*.pid

*.seed

# directory for instrumented libs generated by jscoverage/jscover

lib-cov

# coverage directory used by tools like istanbul

coverage

# grunt intermediate storage (

.grunt

# compiled binary addons (

build/release

# dependency directory

# commenting this out is preferred by some people, see

# node_modules

# users environment variables

.lock-wscript

最後 開啟webstrom 裡面這個專案

建立專案

vue init webpack project
進入專案

cd project
啟動專案

把 eslint 關閉

// ...(config.dev.useeslint ? [createlintingrule()] : ),
/config/index.js

assetspublicpath: '/',改為 assetspublicpath: './',
打包是去掉map 檔案

productionsourcemap: false,

vue 建立vue專案

在程式開發中,有三種方式建立vue專案,本地引入vuejs 使用cdn引入vuejs 使用vue cli建立vue專案。其中vue cli可以結合webpack打包工具使用,大大方便了開發步驟,使用廣泛。在用 vue 構建大型應用時推薦使用 npm 安裝 1 npm 能很好地和諸如 webpack ...

建立vue專案

總結官方的建立vue專案 1.安裝vue.js執行環境nodejs,可用 映象安裝,會比較快,建議安裝c盤,安裝成全域性的。命令是 npm install g cnpm registry 2.檢視安裝的版本,命令是 cnpm v3.安裝全域性腳手架,命令是 cnpm install g vue cl...

建立vue專案

1.按 windous鍵 r 輸入 cmd 開啟黑框框 2.檢查是否安裝npm,執行如下 npm v如果顯示的是版本號,則已經安裝,執行第三步 如果沒有顯示版本號,則需安裝npm npm install npm build npm run dev3.檢查是否安裝vue cli3,執行如下 npm v...