Enviar pesquisa
Carregar
Vue 淺談前端建置工具
•
18 gostaram
•
2,239 visualizações
andyyou
Seguir
vuedinner #3
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 77
Baixar agora
Baixar para ler offline
Recomendados
Vue js 大型專案架構
Vue js 大型專案架構
Hina Chen
第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
An Introduction to Vuejs
An Introduction to Vuejs
Paddy Lock
以Vue開發電子商務網站 架構與眉角
以Vue開發電子商務網站 架構與眉角
Mei-yu Chen
How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0
Takuya Tejima
Vue business first
Vue business first
Vitalii Ratyshnyi
An introduction to Vue.js
An introduction to Vue.js
Javier Lafora Rey
Introduction to VueJS & Vuex
Introduction to VueJS & Vuex
Bernd Alter
Recomendados
Vue js 大型專案架構
Vue js 大型專案架構
Hina Chen
第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
An Introduction to Vuejs
An Introduction to Vuejs
Paddy Lock
以Vue開發電子商務網站 架構與眉角
以Vue開發電子商務網站 架構與眉角
Mei-yu Chen
How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0
Takuya Tejima
Vue business first
Vue business first
Vitalii Ratyshnyi
An introduction to Vue.js
An introduction to Vue.js
Javier Lafora Rey
Introduction to VueJS & Vuex
Introduction to VueJS & Vuex
Bernd Alter
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
Hina Chen
Vue.js is boring - and that's a good thing
Vue.js is boring - and that's a good thing
Joonas Lehtonen
VueJS Introduction
VueJS Introduction
David Ličen
遠端團隊專案建立與管理 remote team management 2016
遠端團隊專案建立與管理 remote team management 2016
Caesar Chi
Vue.js
Vue.js
BADR
Packing it all: JavaScript module bundling from 2000 to now
Packing it all: JavaScript module bundling from 2000 to now
Derek Willian Stavis
Vuex
Vuex
Asaquzzaman Mishu
Vue routing tutorial getting started with vue router
Vue routing tutorial getting started with vue router
Katy Slemon
Vue js for beginner
Vue js for beginner
Chandrasekar G
An Intro into webpack
An Intro into webpack
Squash Apps Pvt Ltd
Vue JS Intro
Vue JS Intro
Muhammad Rizki Rijal
Vuejs for Angular developers
Vuejs for Angular developers
Mikhail Kuznetcov
Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8
Brian Ward
Why Vue.js?
Why Vue.js?
Jonathan Goode
Vue Introduction
Vue Introduction
Elad Gasner
NodeWay in my project & sails.js
NodeWay in my project & sails.js
Dmytro Ovcharenko
Webpack Tutorial, Uppsala JS
Webpack Tutorial, Uppsala JS
Emil Öberg
Enjoy the vue.js
Enjoy the vue.js
TechExeter
Vue 2.0 + Vuex Router & Vuex at Vue.js
Vue 2.0 + Vuex Router & Vuex at Vue.js
Takuya Tejima
Vue js and Vue Material
Vue js and Vue Material
Eueung Mulyana
Webpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of us
Stefan Adolf
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Rhio Kim
Mais conteúdo relacionado
Mais procurados
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
Hina Chen
Vue.js is boring - and that's a good thing
Vue.js is boring - and that's a good thing
Joonas Lehtonen
VueJS Introduction
VueJS Introduction
David Ličen
遠端團隊專案建立與管理 remote team management 2016
遠端團隊專案建立與管理 remote team management 2016
Caesar Chi
Vue.js
Vue.js
BADR
Packing it all: JavaScript module bundling from 2000 to now
Packing it all: JavaScript module bundling from 2000 to now
Derek Willian Stavis
Vuex
Vuex
Asaquzzaman Mishu
Vue routing tutorial getting started with vue router
Vue routing tutorial getting started with vue router
Katy Slemon
Vue js for beginner
Vue js for beginner
Chandrasekar G
An Intro into webpack
An Intro into webpack
Squash Apps Pvt Ltd
Vue JS Intro
Vue JS Intro
Muhammad Rizki Rijal
Vuejs for Angular developers
Vuejs for Angular developers
Mikhail Kuznetcov
Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8
Brian Ward
Why Vue.js?
Why Vue.js?
Jonathan Goode
Vue Introduction
Vue Introduction
Elad Gasner
NodeWay in my project & sails.js
NodeWay in my project & sails.js
Dmytro Ovcharenko
Webpack Tutorial, Uppsala JS
Webpack Tutorial, Uppsala JS
Emil Öberg
Enjoy the vue.js
Enjoy the vue.js
TechExeter
Vue 2.0 + Vuex Router & Vuex at Vue.js
Vue 2.0 + Vuex Router & Vuex at Vue.js
Takuya Tejima
Vue js and Vue Material
Vue js and Vue Material
Eueung Mulyana
Mais procurados
(20)
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
Vue.js is boring - and that's a good thing
Vue.js is boring - and that's a good thing
VueJS Introduction
VueJS Introduction
遠端團隊專案建立與管理 remote team management 2016
遠端團隊專案建立與管理 remote team management 2016
Vue.js
Vue.js
Packing it all: JavaScript module bundling from 2000 to now
Packing it all: JavaScript module bundling from 2000 to now
Vuex
Vuex
Vue routing tutorial getting started with vue router
Vue routing tutorial getting started with vue router
Vue js for beginner
Vue js for beginner
An Intro into webpack
An Intro into webpack
Vue JS Intro
Vue JS Intro
Vuejs for Angular developers
Vuejs for Angular developers
Using VueJS in front of Drupal 8
Using VueJS in front of Drupal 8
Why Vue.js?
Why Vue.js?
Vue Introduction
Vue Introduction
NodeWay in my project & sails.js
NodeWay in my project & sails.js
Webpack Tutorial, Uppsala JS
Webpack Tutorial, Uppsala JS
Enjoy the vue.js
Enjoy the vue.js
Vue 2.0 + Vuex Router & Vuex at Vue.js
Vue 2.0 + Vuex Router & Vuex at Vue.js
Vue js and Vue Material
Vue js and Vue Material
Semelhante a Vue 淺談前端建置工具
Webpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of us
Stefan Adolf
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Rhio Kim
Building JavaScript
Building JavaScript
Brady Clifford
Padrino - the Godfather of Sinatra
Padrino - the Godfather of Sinatra
Stoyan Zhekov
(2018) Webpack Encore - Asset Management for the rest of us
(2018) Webpack Encore - Asset Management for the rest of us
Stefan Adolf
Webpack and Web Performance Optimization
Webpack and Web Performance Optimization
Chen-Tien Tsai
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita
WebAssembly in Houdini CSS, is it possible?
WebAssembly in Houdini CSS, is it possible?
Alexandr Skachkov
Death of a Themer
Death of a Themer
James Panton
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
Shumpei Shiraishi
HTML 5 - Overview
HTML 5 - Overview
Marcelio Leal
Introduction to web application development with Vue (for absolute beginners)...
Introduction to web application development with Vue (for absolute beginners)...
Lucas Jellema
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita
Vue.js + Vuexチーム開発実践の事例
Vue.js + Vuexチーム開発実践の事例
treby
Everything-as-code. A polyglot adventure. #DevoxxPL
Everything-as-code. A polyglot adventure. #DevoxxPL
Mario-Leander Reimer
Everything-as-code - A polyglot adventure
Everything-as-code - A polyglot adventure
QAware GmbH
SnapyX
SnapyX
ekino
SnapyX - ParisJS
SnapyX - ParisJS
florianharmel
Improve your web dev workflow in Visual Studio
Improve your web dev workflow in Visual Studio
David Paquette
20130528 solution linux_frousseau_nopain_webdev
20130528 solution linux_frousseau_nopain_webdev
Frank Rousseau
Semelhante a Vue 淺談前端建置工具
(20)
Webpack Encore - Asset Management for the rest of us
Webpack Encore - Asset Management for the rest of us
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Node.js 기반 정적 페이지 블로그 엔진, 하루프레스
Building JavaScript
Building JavaScript
Padrino - the Godfather of Sinatra
Padrino - the Godfather of Sinatra
(2018) Webpack Encore - Asset Management for the rest of us
(2018) Webpack Encore - Asset Management for the rest of us
Webpack and Web Performance Optimization
Webpack and Web Performance Optimization
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
WebAssembly in Houdini CSS, is it possible?
WebAssembly in Houdini CSS, is it possible?
Death of a Themer
Death of a Themer
WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
HTML 5 - Overview
HTML 5 - Overview
Introduction to web application development with Vue (for absolute beginners)...
Introduction to web application development with Vue (for absolute beginners)...
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Vue.js + Vuexチーム開発実践の事例
Vue.js + Vuexチーム開発実践の事例
Everything-as-code. A polyglot adventure. #DevoxxPL
Everything-as-code. A polyglot adventure. #DevoxxPL
Everything-as-code - A polyglot adventure
Everything-as-code - A polyglot adventure
SnapyX
SnapyX
SnapyX - ParisJS
SnapyX - ParisJS
Improve your web dev workflow in Visual Studio
Improve your web dev workflow in Visual Studio
20130528 solution linux_frousseau_nopain_webdev
20130528 solution linux_frousseau_nopain_webdev
Último
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Delhi Call girls
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Wave PLM
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Arshad QA
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Steffen Staab
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ComplianceQuest1
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Willy Marroquin (WillyDevNET)
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Alberto González Trastoy
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
MyIntelliSource, Inc.
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
ABDERRAOUF MEHENNI
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Fatema Valibhai
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
panagenda
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
SolGuruz
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
kellynguyen01
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ThousandEyes
Último
(20)
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
Vue 淺談前端建置工具
1.
vuedinner #3 Vue
2.
@wainfo github: andyyou 2
3.
• • • webpack • vue-loader •
vue-cli • vue templates (webpack) •
4.
• HTML • CSS •
Javascript • Assets(Images, Fonts) EB
5.
• HTML -
Templates • CSS - Sass, Less, PostCSS • Javascript - Compile To Javascript • • • • Lint • Debug Tools
6.
7.
• Bower, npm •
Browserify, RequireJS • Grunt • gulp, fly • Brunch • webpack • jspm • rollup
8.
http://j.mp/2bhpkQL
9.
10.
11.
12.
13.
> ls -al
| grep whoami pipe
14.
gulp.src(paths.scripts) .pipe(sourcemaps.init()) .pipe(coffee()) .pipe(uglify()) .pipe(concat('all.min.js')) .pipe(sourcemaps.write()) .pipe(gulp.dest('build/js'));
15.
ES2015 Generator style
16.
Javascript
17.
18.
require('module')
19.
> npm install
-g browserify > browserify [src] -o > [dist]
20.
webpack
21.
• • • ES6
Module Loader Polypill • SystemJS Universal Dynamic Module Loader Any type of module format can be loaded and it will be detected automatically by SystemJS.
22.
jspm?
23.
24.
http://j.mp/2aNmimZ
25.
webpack
26.
• npm + •
grunt, gulp • requires, browserify • webpack + ( ) • jspm + + + ( ) • rollup, fly,
27.
webpack • • / (2014) • • •
HRM • loaders & plugins • Code Splitting (sync, async chunk) • •
28.
webpack • • / • • • HRM •
loaders & plugins • Code Splitting (sync, async chunk) • •
29.
webpack
30.
...
31.
• • • • • • • webpack
32.
1. 1. 2. 2. 3. 4.
33.
vue with webpack http://j.mp/2bzJl36
34.
# npm/nvm > mkdir
vuedinner && cd vuedinner > npm init -y > npm i webpack -D https://github.com/andyyou/vue-dinner-demo
35.
> webpack <entry>
<output> > webpack e1.js e2.js bundle.js > webpack andyyou=./entry.js "[name].js" >> output a andyyou.js file. // webpack.config.js module.exports = { output: { filename: "[name].bundle.js" } }
36.
1. index.html 2. main.js
index.js 3. 4. webpack
37.
loaders Javascript
38.
> npm i
css-loader style-loader file-loader -D !
39.
> webpack main.js
bundle.js —output-public-path=‘/dist/' --module-bind 'css=style!css' --module-bind 'png=file'
40.
41.
webpack-dev-server + plugins
42.
> npm i
webpack-dev-server -D
43.
• dll • css
( ) • , , , • HTML5 Cache mainfest • Offline (ServiceWorker) • HRM • s3 • plugins
44.
ES2015 + Vue
45.
1. 2. webpack.config.js 3. .babelrc 4.
( Vue.js) https://github.com/babel/babel-loader
46.
# webpack: webapck #
webpack-dev-server: # webpack-merge: (webpack.config.js) # css-loader: css # style-loader: css html # file-loader: # url-loader: base64 # babel-core: ES2015 babel # babel-loader: ES2015 # babel-plugin-transform-runtime: polyfilling ( babel-runtime) # babel-preset-es2015: es2015 # babel-preset-stage-0: # babel-runtime: ES2015+ helpers, polyfilling `class MyClass {}` -> `_classCallCheck` AST # vue-loader: vue # vue-html-loader: vue template # vue-style-loader: vue # vue-hot-reload-api: Hot reload API for Vue components
47.
48.
vue-loader vue-loader
49.
50.
• <template> • HTML •
vue <template> • • <script> • javascript ES2015 Babel • vue <script> • JS CommonJS require • import ES2015 • script Vue - Vue.extend() • <style> • css • <style> • `sytle-loader` <head> <style> • webpack css
51.
src CommonJS require •
./ • module/dist/all.css npm <template src="./template.html"></template> <style src="./style.css"></style> <script src="./script.js"></script>
52.
vue-style!css![options]!rewriter(postcss) Source Code • autpprefixer •
scoped • postcss + cssnext
53.
vue-hot-reload-api 2.0.6 Hot Reload
54.
55.
vue-loader loader webpack loader
jade-loader function HTML String jade jade-loader
56.
• file-loader • url-loader
base64 HTTP request url(image.png) > require(‘file!./image.png')
57.
58.
> npm i
vue-loader vue-html-loader vue-style-loader vue-hot-reload- api@1 -D # 1. webpack.config.js # 2. main.js app.vue
59.
> webpack-dev-server --inline
--hot Hot Module Replacement / Hot Reload
60.
webpack-dev-server • Iframe mode http://localhost:8080/webpack-dev-server/index.html •
Inline mode webpack-dev-server client entry bundle
61.
--hot —hot = HotModuleReplacementPlugin
62.
63.
64.
https://github.com/webpack/webpack-dev-server/blob/ 2eef9e64e4528dfda756d61c627d4b5a49bbae8e/bin/ webpack-dev-server.js#L240-L257
65.
66.
https://medium.com/@rajaraodv/webpack- the-confusing-parts-58712f8fcad9#. 6z7z6wx8q
67.
JS
68.
+
69.
70.
vue-loader vue-cli > npm install
-g vue-cli > vue init <template-name> <project-name> > vue init webpack v-project
71.
webpack
72.
webpack dev middleware
plugins • webpack dev middleware • webpack hot middleware • html-webpack-plugin • html-webpack-template • extract-text-webpack-plugin
73.
Vue - PASSER
Baixar agora