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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
RIDI
November 03, 2017
Technology
900
3
Share
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.2k
빠르게 훑어보는 리디페이 백엔드 개발기
ridi
2
5.2k
Next.js는 정말 zero config였다.
ridi
0
2.2k
3일 걸릴 것 같던 구매목록 다운로드는 왜 3주가 걸렸을까?
ridi
0
480
원격으로 한 달 일해보니
ridi
0
1.5k
리디북스 앱에 S Pen Remote 연동하기
ridi
2
2.9k
UI 라이브러리 개발기
ridi
1
2.8k
테스트 환경 개선하기
ridi
8
3.6k
Other Decks in Technology
See All in Technology
GitHub Copilot のこれまでとこれから: From Copilot to Collaborative Agents
yuriemori
1
220
eBPF Can Do It! A 5-Minute Tour of 5 Real-World PHP Issues Solved with eBPF
egmc
0
310
データ基盤構築・運用の現場から 〜 Snowflake Intelligence 導入で変わった、データ活用の未来 〜
wonohe
0
210
LLM時代のリファクタリング戦略_AIエージェントによる段階的・安全なTS移行方法
play_inc
0
340
形式手法特論:公平性制約の位相的特徴づけ #kernelvm / Kernel VM Study Kansai 12th
ytaka23
1
530
Java正規表現エンジン(NFA)の仕組みと パフォーマンスを維持するための最適化手法
takeuchi_132917
0
130
大学生が本気でDatabricksを活用してDiscordサークルをデータ駆動させてみた
phantomjuju
0
250
管理アカウント単一運用からAWS Organizationsに移行するの大変で滅
hiramax
0
280
オンコールの負荷軽減のためのBits Assistant 活用方法 / How to Use Bits Assistant to Reduce the Workload on On-Call Staff
sms_tech
1
280
ビジュアルプログラミングIoTLT vol.23
1ftseabass
PRO
0
150
A Harness for Behaviour: how to get AI to generate code that does what we intend, or "TDD in the age of AI"
xpmatteo
0
480
Cloud Run のアップデート 触ってみる&紹介
gre212
0
200
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
130
30 Presentation Tips
portentint
PRO
1
300
The Language of Interfaces
destraynor
162
26k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
270
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
920
Amusing Abliteration
ianozsvald
1
180
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Prompt Engineering for Job Search
mfonobong
0
320
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 ୭ࣗച…. • ࣘੋ ѐߊജ҃ ѐࢶ
хࢎפ