$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Webpack 3 触ってみた
Search
puku0x
July 19, 2017
Technology
0
430
Webpack 3 触ってみた
puku0x
July 19, 2017
Tweet
Share
More Decks by puku0x
See All by puku0x
生成AIではじめるテスト駆動開発
puku0x
0
740
実践!カスタムインストラクション&スラッシュコマンド
puku0x
2
2.4k
Nx × AI によるモノレポ活用 〜コードジェネレーター編〜
puku0x
0
1.4k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
250
ファインディでのGitHub Actions活用事例
puku0x
9
3.6k
Findyの開発生産性向上への取り組み ~Findyフロントエンドの場合~
puku0x
0
450
Findyの開発生産性を上げるためにやったこと
puku0x
1
630
Angularコーディングスタイルガイドはいいぞ
puku0x
1
400
Nx CloudでCIを爆速にした話
puku0x
0
930
Other Decks in Technology
See All in Technology
日本の AI 開発と世界の潮流 / GenAI Development in Japan
hariby
1
490
NIKKEI Tech Talk #41: セキュア・バイ・デザインからクラウド管理を考える
sekido
PRO
0
220
株式会社ビザスク_AI__Engineering_Summit_Tokyo_2025_登壇資料.pdf
eikohashiba
1
120
Knowledge Work の AI Backend
kworkdev
PRO
0
270
AI との良い付き合い方を僕らは誰も知らない
asei
0
270
Strands Agents × インタリーブ思考 で変わるAIエージェント設計 / Strands Agents x Interleaved Thinking AI Agents
takanorig
5
2.1k
LayerX QA Night#1
koyaman2
0
270
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
130
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
150
Amazon Quick Suite で始める手軽な AI エージェント
shimy
1
1.9k
AI時代のワークフロー設計〜Durable Functions / Step Functions / Strands Agents を添えて〜
yakumo
3
2.3k
[2025-12-12]あの日僕が見た胡蝶の夢 〜人の夢は終わらねェ AIによるパフォーマンスチューニングのすゝめ〜
tosite
0
190
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
120
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
65
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
710
The agentic SEO stack - context over prompts
schlessera
0
560
Chasing Engaging Ingredients in Design
codingconduct
0
85
Statistics for Hackers
jakevdp
799
230k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
150
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
115
94k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Test your architecture with Archunit
thirion
1
2.1k
Unsuck your backbone
ammeep
671
58k
Transcript
Webpack 3 ৮ͬͯΈͨ ԶͷΛฉ͚ʂʂLTେձ #4 2017/07/19
(ג)Ϩεί ΤϯδχΞ ng-fukuokaද ৽ٓါ !QVLVY
Webpack
Webpack • ϑϩϯτΤϯυपΓͷϏϧυπʔϧ • HTML/CSS/JS → શ෦JSʹม • bundle.js ʹ·ͱΊΔʢׂՄʣ
V3 ϦϦʔεʂ https://medium.com/webpack/webpack-3-official-release-15fd2dd8f07b V2ϦϦʔε͔Βܦͬͯͳ͍ΜͰ͚͢Ͳ…
V3ͰԿ͕มΘͬͨʁ
Scope Hoisting • ModuleConcatenationPluginͷՃ • Ϟδϡʔϧผʹ (function(){}) ͯͨ͠ ෦͕·ͱΊΒΕΔ •
࣮ߦ࣌ؒͱϑΝΠϧ༰ྔΛݮ
https://medium.com/webpack/webpack-3-official-release-15fd2dd8f07b όϯυϧαΠζݮ!?
Magic Comments • V2͔Βͷimport()Λ͏ͱchunk͕ ʮ0.bundle.jsʯˡ Θ͔Γʹ͍͘ • ҙͷchunk໊Λ͚ΒΕΔ import(/* webpackChunkName:
"my-chunk-name" */ 'module');
ͬͯΈΑ͏ • ͔͔ͤͬͩ͘Βangular.ioΛࡐ • ng eject Ͱ webpack.config.js Λநग़ͯ͠ຐվͰ͖Δ VerUPͰWebpack3ରԠ͢Δ͔ΒΒͳ͍͍ͯ͘Αʂ
݁Ռ const { CommonsChunkPlugin, ModuleConcatenationPlugin } = require('webpack').optimize; "plugins": [
new ModuleConcatenationPlugin() ], αΠζ Ϗϧυ࣌ؒ ϓϥάΠϯͳ͠ ,# T ϓϥάΠϯ͋Γ ˞ ,# T ※ webpack.config.jsʹҎԼΛՃ
ҙ • ModuleConcatenationPlugin༻࣌ • UglifyJSPluginผύοέʔδʹ { presets: [["es2015", { "modules":
false }]] } npm i -D git://github.com/mishoo/UglifyJS2#harmony-v2.8.22 npm i -D uglifyjs-webpack-plugin
Webpack 3 ʹҠߦ͠Α͏ʂ