6-2 vue-cli項目架構和webpack配置項
7-8 config index.js proxyTable
10-1 聯調
10-2 真機測試
-> ipconfig 獲取內網ip地址
webpack dev-server默認不支持用ip訪問 如果想要支持,需給dev-server添加 --host 0.0.0.0
-> 同一區域網內,通過手機訪問
10-3 打包
如果上線的項目不在根目錄下,而是在'/project'下,打包前需要webpack配置如下更改 assetsPublicPath:'/project'
- 空白目錄
- vue-cli
- runtime-only
- Vue對比React
- 組件與實例
- data-binding
- computed的set和get
- scoped
- 事件
- 自定義指令
- 插件
- keep-alive
- $nextTick與生命周期
- 路由
- Vue.use(Router)
- this.$router編程式導航
- this.$route
- new Router
- routes
- mode
- linkClass
- scrollBehavior
- query
- fallback
- base
- router-view
- router-link
- 路由守衛
- 左右切換
- 滾動
- FAQ
- vuex
- 適用
- new Vuex.Store
- state
- mutations
- getters
- actions
- strict
- plugins
- modules
- namespace
- this.$store
- commit
- dispatch
- mapXX
- eventBus
- Vue工程相關
- 引用路徑的簡化
- css-module
- vue-loader
- 異步加載
- 支持jsx
- 讓webpack支持對vuex的熱替換
- .eslintrc