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
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Optimising Largest Contentful Paint
csswizardry
37
4k
The Language of Interfaces
destraynor
162
27k
Faster Mobile Websites
deanohume
310
32k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
How to make the Groovebox
asonas
2
2.5k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
BBQ
matthewcrist
90
10k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
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