vue專案構建

2021-10-08 06:01:08 字數 680 閱讀 8046

//初始化建立自動生成的資料夾、檔案

vue-item

|-- build : webpack 相關的配置資料夾

(基本不需要修改)

|-- dev-server.js : 通過 express 啟動後台伺服器

|-- config: webpack 相關的配置資料夾

(基本不需要修改)

|-- index.js: 指定的後台服務的埠號和靜態資源資料夾

|-- node_modules: 第三方依賴模組資料夾

|-- src : 原始碼資料夾

|-- components: vue 元件及其相關資源資料夾||

-- main.js: 應用入口 js

|--static

: 靜態資源資料夾

|--.babelrc: babel 的配置檔案

|--.eslintignore: eslint 檢查忽略的配置

|--.eslintrc.js: eslint 檢查的配置

|--.gitignore: git 版本控制忽略的配置

|-- index.html: 主頁面檔案

|--package

.json: 應用包配置檔案

|--readme

.md: 應用描述說明的 readme 檔案

Vue專案的構建

安裝vue cli vue安裝vue cli官網文件 新建vue config.js 檔案,設定專案基本配置 專案配置 const environment require src config environment 引入環境配置檔案 const path require path 引入檔案路徑處理...

Jenkins構建Vue專案

一 jenkins job相關配置 二 發布指令碼 root data 05 nps cat nps web page.sh bin sh user ip 172.168.168.109 user name root dst dir fs01 nps web web page manage boot...

webpack構建vue專案深入

css css reset.css resetcss js js home home router router main.js mainjs view view index.html indexhtml package.json packagejson 配置webpack.config.js co...