Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Vue 2.0 開發環境 - 以 webpack2 建立
Search
julian7454
February 03, 2017
96
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Vue 2.0 開發環境 - 以 webpack2 建立
julian7454
February 03, 2017
More Decks by julian7454
See All by julian7454
Vue testing library - avoriaz
julian7454
0
79
houdini drafts
julian7454
0
69
PostCSS 與 cssnext
julian7454
0
110
javascript品質檢測工具 - ESLint
julian7454
0
190
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
1.6k
Building AI with AI
inesmontani
PRO
1
1.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
RailsConf 2023
tenderlove
30
1.6k
Chasing Engaging Ingredients in Design
codingconduct
0
360
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Being A Developer After 40
akosma
92
590k
Making the Leap to Tech Lead
cromwellryan
135
10k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Six Lessons from altMBA
skipperchong
29
4.5k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
Transcript
Vue2.0 樄咳絑ह 犥 webpack 2 ୌ缏 1 styleMe䨝捍ਰ 2017/2/3 julian
Vue2.0 • 硬አ Virtual-DOM • Server-side Rendering • 硬虋膏ीےӞ犚ኞ蝰๗獢ୗ •
殾ဳ物زկ犋胼䟑斉ک <body> or <html> 2 https://vuefe.cn/v2/guide/instance.html
ୌ缏䌕礯 • VUE-CLI • 犥 webpack 2.2.0 ᛔᤈୌ缏 3
webpack 2.X • module.loaders is now module.rules • loader 殾ےӤ
-loader 盅翖 • ࣁक़䍅蟴ᗝጱ硬ک rules ex. postcss-loader • ES6 Modules 4 https://webpack.js.org/guides/migrating/
奲կ玕 • ֵአ vue-loader 膏 .vue 䲆 5
Hot Reload • webpack-dev-server • vue-hot-reload-api • ୌ缏Ӟඪ server.js 6
webpack.config.js package.json https://github.com/andyyou/vue-dinner-demo/blob/master/build/server.js
樄咳瞲犤 • 樄咳 webpack-dev-server • ୌ缏 webpack -p • ے獈
npm-script 7
vue-router • ڡত玕ොୗ硬虋 8 v1 v2 https://cn.vuejs.org/v2/guide/migration-vue-router.html#router-redirect-磦ഘ
vue-router • ीےৼ᪠ኧ • view ጱ v-link 硬౮ router-link 9
v1 v2
ࣁ gulp 䌕礯Ӿ蝝疩獈 • gulp-webpack 10
ஞ • Vue ฃӤಋ牧֕獋㮆粚舙䷱矑藉螂 v1 Ӟ樄ত䨝 磪讨窾㫂 • Vue migration
helper 11
Vue migration helper • npm install --global git://github.com/vuejs/vue- migration-helper.git •
cd vue-project • Vue-migration-helper 12 http://kuro.tw/posts/2016/09/30/Vue-2-0-%E5%8D%87%E7%B4%9A%E5%B0%8F%E5%B9%AB%E6%89%8B-Vue-migration-helper/
㷢ᘍ虻碘 13 Migrating from v1 to v2 https://webpack.js.org/guides/migrating/ vue +
webpack 蚏ಋୗ https://webpack.js.org/guides/migrating/ webpack ᪡ࣗԏ碟 https://webpack.js.org/guides/migrating/ Vue Router 0.7.x 鉐ᑏ https://cn.vuejs.org/v2/guide/migration-vue-router.html