Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
From RequireJS to Webpack
Search
RIDI
November 03, 2017
Technology
910
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
From RequireJS to Webpack
발표자: 스토어팀 조규진
RIDI
November 03, 2017
More Decks by RIDI
See All by RIDI
원격 근무 팀 운영 경험 공유
ridi
0
2.3k
SVG Icon Design Guide
ridi
2
4.3k
빠르게 훑어보는 리디페이 백엔드 개발기
ridi
2
5.3k
Next.js는 정말 zero config였다.
ridi
0
2.2k
3일 걸릴 것 같던 구매목록 다운로드는 왜 3주가 걸렸을까?
ridi
0
500
원격으로 한 달 일해보니
ridi
0
1.6k
리디북스 앱에 S Pen Remote 연동하기
ridi
2
2.9k
UI 라이브러리 개발기
ridi
1
2.8k
테스트 환경 개선하기
ridi
8
3.7k
Other Decks in Technology
See All in Technology
AI Native なプロダクト組織の立ち上げ方 : 生産性 100 倍への挑戦
mikesorae
0
1.4k
GoでCコンパイラを作った話
repunit
0
160
AI研修(Day1)【MIXI 26新卒技術研修】
mixi_engineers
PRO
1
220
StepFunctionsとGraphRAGを活用した暗黙知活用のためのRAG基盤
yakumo
0
170
”AIを使う” から ”AIに任せる” へ ─ 開発プロセスを再設計してAIを組織標準にするまで
cyberagentdevelopers
PRO
2
150
kaonavi Tech Night#1
kaonavi
0
170
AIツールを導入しても生産性はあがらない? カオナビが直面した 3つの壁と乗り越え方。/ Overcoming 3 Barriers to AI-Driven Productivity at kaonavi
kaonavi
0
270
SRENEXT_2026_Chairs__Talks_in_Tamachi.sre.pdf
srenext
1
160
VPCセキュリティ対応の最新事情
nagisa53
1
320
AIとハーネスで育てるトランスコンパイラ / 20260722 Yasushi Katayama
shift_evolve
PRO
3
900
10年目を迎えた「ABEMA」がどのように AI 活用を推進して、AI 駆動開発にシフトしているのか / How ABEMA, entering its 10th year, is promoting the use of AI and shifting toward AI-driven development
miyukki
1
380
Jitera Company Deck
jitera
0
520
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.1k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
310
Google's AI Overviews - The New Search
badams
0
1.1k
Ethics towards AI in product and experience design
skipperchong
2
330
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Product Roadmaps are Hard
iamctodd
55
12k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
270
Embracing the Ebb and Flow
colly
88
5.1k
Claude Code のすすめ
schroneko
67
230k
Transcript
From RequireJS To Webpack झషয ઑӏ
• ݽٚ ݽٕ ੌ • ױਤ ࠂ ઁѢо ਬ܂
ঋ • ࢲ ࠽٘ೞ۰ݶ concat ೧ঠೠ (dependency ҅ X) • ࢜۽ بੑೠ Vue.js ਊ ಕח webpackਵ۽ ࠽٘ ⟶ ӝઓ ݽٕҗ ഐജ ө۽
• ݽٕ dependency ӝળਵ۽ ߣٜ • babel ١ নೠ loaderܳ
ా೧ ߣٜ җীࢲ ߸ഋ ਊ оמ webpack
߄Լࠁ~ 7 زউ ࢲ ݽٚ JS ࣻ
• Bower ઁѢ && webpack && ES6 زदী ਊ •
झప పझ݅ 3ߣ… ೧ب ೧ب ࠛউೣ • ߓನ റ উ٘۽٘ীࢲ ۽٘ ز ী۞ • webpack → Bower ઁѢ → ES6 ࣽਵ۽ ਊ೮ݶ?
• ݽٕਸ ղ ۽ • ES6
ߓನ റ
ҳ ߡ উ٘۽٘ জ, ۨ݃ ࠳ۄীࢲ झ݀ ز উ ೣ
• ES3ীࢲ ES ডযܳ foo.keyword, {keyword: ‘foo’} ৬ э ࢎਊೡ
ࣻ হ • ۨ݃ח উ٘۽٘ 4.0.x ੋؘ ES3 babel-polyfill VueJS
Babel plugin ਊ UglifyJSPluginীࢲ द quote ઁѢೞ ঋب۾ ২࣌ ୶о
• moduleIdо ҅ࣘ ߸҃غח ޙઁ • ࠽٘ റ ੌ ױਤ۽
ߓನೞח दझమ (ߣ deployer بੑ ) Ѣ ߓನೞח Ѣ ݏইਃ?
https://webpack.js.org/guides/caching/#module-identifiers
moduleIdী ࢚҃۽৬ hash ਊ webpack ࢸ ࠁ݅ vendors.webpack.js ܻ࠙
ৈ ࢚ ޅೠ ੌ ߸҃ؽ Ѣ ߸҃ػ Ѣ ݏইਃ? •
chunkIdب ҅ࣘ ߸҃
chunkIdب ܴਵ۽ ߸҃
None
• async import • ridibooks.com / static.ridibooks.com • xxx.dev.ridi.io •
config.local.php $STATIC_URL ଵઑ೧ࢲ webpack.local.js ࢤࢿ
• ಣӐ ࠽٘ दр 20s (Babel cache ਊػ ࢚క) •
۽ UglifyJSPluginীࢲ ো
࠙ݺ ҕध ޙࢲী parallel, cache ২࣌ חؘ..
• webpack ҕधޙࢲীࢲ п plugin repo README.md ࢎਊ • ߡ
ҙ҅হ ୭न ழਵ۽ оઉ১
߹ب ۞Ӓੋ ਊ 10ੌ ী UglifyJSPlugin v1.0.0 ܾܻૉ
• webpack ߣٜ݂ ٸޙী ѐߊ दীب sourcemap ਃ • cheap-module-eval-source-map
খਵ۽..
• ԇؘӝ݅ ES6ੋ ݽٕٜ refactor • VueJS ਊ ഛ (GNB,
࢚ࣁಕ दܻૉ ܻझ ١) • jQuery ୭ࣗച…. • ࣘੋ ѐߊജ҃ ѐࢶ
хࢎפ