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
この先生きのこるためのPostCSS実践入門
Search
Pちゃん
June 21, 2017
Programming
1
1.5k
この先生きのこるためのPostCSS実践入門
Frontend de KANPAI! #frokan LT枠での資料です。
Pちゃん
June 21, 2017
Tweet
Share
More Decks by Pちゃん
See All by Pちゃん
API になろう / Let's become an API
p1ch_jp
0
3.2k
天下一 Dev Server 武道会 / World Dev Server Tournament
p1ch_jp
2
860
エンジニアのためのデザインの話
p1ch_jp
0
910
Other Decks in Programming
See All in Programming
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
330
Click-free releases & the making of a CLI app
oheyadam
2
110
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
最新TCAキャッチアップ
0si43
0
140
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.4k
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
910
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
RubyLSPのマルチバイト文字対応
notfounds
0
120
Featured
See All Featured
Navigating Team Friction
lara
183
14k
Six Lessons from altMBA
skipperchong
27
3.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Gamification - CAS2011
davidbonilla
80
5k
Rails Girls Zürich Keynote
gr2m
94
13k
Code Reviewing Like a Champion
maltzj
520
39k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Documentation Writing (for coders)
carmenintech
65
4.4k
Making Projects Easy
brettharned
115
5.9k
Transcript
͜ͷઌੜ͖ͷ͜ΔͨΊͷ PostCSS࣮ફೖ Shintaro Fujiwara DeNA Co., Ltd. / Design Strategies
Office
! ࣗݾհ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ࣗݾհ
! ࣗݾհ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ౻ݪ৻ଠ a.k.a. P-Chan " UI Design
/ Front-End # DeNA Co., Ltd. $ MyAnimeList.net
! 1PTU$44ͱ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ PostCSSͱ
! 1PTU$44ͱ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ en) PostCSS is a tool for
transforming styles with JS plugins. ja) PostCSSɺJSϓϥάΠϯͰελΠϧΛม͢ΔͨΊͷπʔϧ PostCSSͱ input CSS CSS PostCSS Plugin " " PostCSS Plugin # Input CSS # Output CSS $ PostCSS Plugin " " PostCSS
! 1PTU$44ͱ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ جຊతʹɺ֤छϓϥάΠϯΛ͍ΕΔ͜ͱʹΑͬͯɺ༷ʑͳγϯλοΫ ε͕͑ΔΑ͏ʹͳΓ·͢ɻ ٯʹݴ͏ͱɺԿೖΕͳ͚Εɺͦͷ··ͷελΠϧγʔτ͕ు͖ग़͞ Ε·͢ɻ input CSS
CSS PostCSS Plugin " " PostCSS Plugin # Input CSS # Output CSS $ PostCSS Plugin " " input CSS PostCSS Plugin # Input CSS # Output CSS #
! 1PTU$44ͱ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ࣍ੈඪ४Ͱॻͨ͘ΊͷτϥϯεύΠϥʔ ࠓͷͱ͜ΖɺҰ൪ϝδϟʔͳΘΕํʮϓϥάΠϯΛΈ߹Θͤͯɺ ࣍ੈඪ४ $44 $44 ΛݱࡏͷϒϥβͰ͑ΔΑ͏ʹ͠Α͏ʯ
ͱ͍͏ͷͰ͢ɻ +4ք۾Ͱىͬͨ͜ʮ࣍ੈඪ४ΛݱࡏͷϒϥβͰ͑ΔΑ͏ʹ͠Α ͏ʯͷྲྀΕͱಉ͡ͷͷΑ͏ʹײ͡·͢ɻ ࠓͷͱ͜Ζɺ࣍ੈඪ४Ͱۄͳػೳͱݴ͑ɺWBS ม ͱ͔ !BQQMZ มηοτ ͱ͔DBMD ԋࢉ ͱ͔Ͱ͢ɻ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ϓϥάΠϯΛબͿ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ϚδͰແͷϓϥάΠϯ͕ଘࡏ͢Δ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ precss PostCSSͰSASSͬΆ͍ॻ͖ํͰ͖ΔΑ͏ʹ͢Δͭ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ sugarss ΠϯσϯτϕʔεͷγϯλοΫεͰ͔͚ΔΑ͏ʹͳΔ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ͖উखΔͱ ΅͘ͷ͔Μ͕͍͖͑ͨ͞ΐ͏ͷ ͠ʔ͑͠Ύ͑͠ΎΓΖͤͬ͞ʔ ͕Ͱ͖͕͋Δ
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ޙʹɺ͢Ͱʹਏ͘ͳͬͯͦ͏
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ͜ͷઌੜ͖ͷ͜Δ ϓϥάΠϯ͚͕ͩΠΠͳʜ"
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ postcss-cssnext ࣍ੈඪ४Ͱॻ͚ΔΑ͏ʹͳΔϓϥάΠϯΛηοτʹͨͭ͠
! ϓϥάΠϯΛબͿ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞
! ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ Ͱɺ4BTTͷ΄͏͕ڧ͘ͳ͍ʁ 1PTU$44ͷΛ͢ΔͱɺඞͣҾ͖߹͍ʹग़͞ΕΔͷ͕4BTTͰ͢ɻ ʮ4BTTͷ΄͏͕ͭΑ͘ͳ͍ʁ4BTTͰΑ͘ͳ͍ʁʯͱݴΘΕ·͢ɻ ͓ͬ͠ΌΔͱ͓Γɺ4BTTͷ΄͏͕ͭΑ͍Ͱ͢ɻ
! ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞ 4BTT͔֬ʹͭΑ͍Ͱ͢ɻ ͔͠͠ɺ࣍ੈඪ४Ͱ͋Δͱ͍͏͜ͱʹɺҎԼͷΑ͏ͳϝϦοτ͕͋ Γ·͢ɻ ظతͳαϙʔτ WTBMUYYY
࣍ʑੈඪ४ͷҠߦίετͷ͞ ΤίγεςϜͷྲྀߦΓ͢͞ τϥϯεύΠϧແ͠Ͱಈ͘ະདྷ͕དྷΔ ͨͩ͠ ྲྀߦΕڧ͍ػೳ͕૿͑Δ
! ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ ඪ४ͰԺ͔ΛखʹೖΕΔ ݸਓతʹɺʮͰ͖Δ͚ͩඪ४తͳٕज़Ͱ͍ͬͯ͘΄͏͕ɺԺ͔ʹ ੜ͖͍͚ͯΔʯͱࢥ͍ͬͯΔͷͰɺ͜Ε͔ΒͰ͖Δ͚ͩ1PTU$44Λ ͍ͬͯ͜͏ͱࢥ͍ͬͯ·͢ɻ ੋඇɺΈͳ͞ΜͬͯΈ͍ͯͩ͘͞"
! ࣍ੈඪ४Ͱ͋Δ͜ͱͷͭΑ͞ ͜ͷઌੜ͖ͷ͜ΔͨΊͷ 1PTU$44࣮ફೖ " ͓͠·͍