Burikaigi 2023 https://burikaigi.dev/ Twitter https://twitter.com/__sakito__
Rails 7.0ã§ã¯ããã³ãã¨ã³ããµãã¼ããå·æ°ããã¾ããæ°ããªã©ã¤ãã©ãªãå¤æ°å°å ¥ãããé¸æè¢ãå¢ããããããRailså ¬å¼ã®ãã®ãé¸ã¹ã°OKãã¨ããæ¦ç¥ãéç¨ããªããªãã¾ãã æ¬ç¨¿ã§ã¯ãRailsã§ããã³ãã¨ã³ããæ¸ãããã®é¸æè¢ã«ã¤ãã¦ããã®æ´å²ã¨å®è£ ãè¸ã¾ãã¦æ¯è¼æ¤è¨ãã¾ãã çµè«ããè¨ãã¨(ã¾ã ã¢ã«ãã¡çãªã®ã§ä»å¾ãç¶æ³ãå¤ããå¯è½æ§ã¯ããã¾ããã) æ°è¦ã¢ããªã±ã¼ã·ã§ã³ã§ã¯Sprocketsã®å½¹å²ã¯ç¡ããªãããã§ããæ°ããã©ã¤ãã©ãªã¨ã㦠Propshaft, importmap-rails, jsbundling-rails, cssbundling-rails ãç»å ´ãã主è¦ãªé¸æè¢ã¨ãã¦ä»¥ä¸ãæä¾ããã¾ãã (åã©ã¤ãã©ãªã®è©³ç´°ã«ã¤ãã¦ã¯å¾è¿°ãã¾ã) Propshaft + importmap-railsããã©ã«ãã®é¸æè¢ãNode.jsãä¸è¦ããã©ã³ã¹ãã¤ã«ãå«ããè¤
Transcript ݱà ÏϩϯÏÎ¤Ï¯Ï Í´Ü½ÍͤͳÍ⨠XFCQBDLͱ#BCFMÎà½§Õ²Í ÎÍÊ� CVJMEFSTDPO�UPLZP����� /BNF� ����4BLJUP�.VLBJ� 5XJUUFS⨠����!@@TBLJUP@@� $PNQBOZ� ����$ZCP[V�JOD�⨠����'SPOUFOE�&YQFSU�5FBN "CPVU�NF w#BCFMͷલʹݱà¡Í·+BWB4DSJQUÍ´ÍÍͯ� w#BCFMÍ´ÍÍͯ� wXFCQBDLÍ´ÍÍͯ� wXFCQBDL #BCFMͰ಺෦࣮૷Î௥ͬͯÍÍ "HFOEB #BCFMͷલʹݱà¡Í·+BWB4DSJQUÍ´ÍÍͯ &$."4DSJQUͱ5$�� w+BWB4DSJQUʹ͸&$."4DSJQUͱÍÍÝ´Þ à¢à¼·ÍÍÎ� wÍÍ·Ý´Þ à¢à¼·ÎܾÎͯÍÎÒÒ»Õ±Í5$��⨠5FDIOJDBM�$PNNJUUFF��� � w&4��
# Babel 7.4.0ã§éæ¨å¥¨ã«ãªã£ã@babel/polyfillã使ãããcore-js@3ã§ç°å¢æ§ç¯ãã @babel/polyfill (opens new window)ã®ãã¼ã¸ã«Babel 7.4.0ããéæ¨å¥¨ã«ãªã£ãã¨æ¸ããã¦ããã As of Babel 7.4.0, this package has been deprecated ãã®è¨äºã§ã¯webpack4ã§Babel7.4ã使ã£ãç°å¢æ§ç¯ã®æ¹æ³ãè¨è¼ããã # ç°å¢æ§ç¯ # ã¤ã³ã¹ãã¼ã« @babel/polyfillã§ã¯ãªãcore-jsã¨regenerator-runtimeãã¤ã³ã¹ãã¼ã«ãã¦ããã®ããã¤ã³ãã Polyfillã¯core-jsã«ã¾ã¨ãããã¦ãããasync-awaitãåããã«ã¯regenerator-runtimeãå¥ã§å¿ è¦ã«ãªãã ãã®ã»ããBabelãWebpackã§ãã«ãããããã«å¿
webpackerè±åºã表ç¾ããçµµç»åãã«è±webpackerã¢ããã¤ã¶ã¼ã®å°å®®å±±ã§ããæè¿ã®è¶£å³ã¯ç¸å¤ãããã©ã³ãã³ã°ã§ãããä¸ã®éã®ãã¼ã©ãããã«ã¤ã³ã¹ãã¤ã¢ããã¦ãã«ããªã³ã°ã«ã夢ä¸ã«ãªãã¤ã¤ããã¾ãã ããã³ãã¨ã³ãåç主義ã¨ã¯ãµã¼ãã¼ãµã¤ãããããã³ãã¨ã³ãã¸ã®å¹²æ¸ï¼ç¹ã«ã¬ã³ããªã³ã°ï¼ãå«ãä¸æ´¾ã«ç§ãåæã«ååãä»ããã ãã§ãããã ãSSRã¯ãã®éãã§ã¯ç¡ãã®ã§æè¿ã¯çµæ§ææ§ã«ãªãã¤ã¤ããã¾ãã åæ©webpacké¢é£ã®ã¢ãããã¼ããwebpacker対å¿å¾ ã¡æ大ã®ãã¡ãªããã¯ãã¯ããwebpacké¢é£ã®ã¢ãããã¼ããwebpacker対å¿å¾ ã¡ã«ãªã£ã¦ãã¾ããã¨ã§ãããã©ããªã«webpack4ã3ããé²åãã¦ããã¨ãã¦ããå°å ¥ããã«ã¯ã¬ã¼ã«ã¨ãªãwebpackerã対å¿ãã¦ãããã®ãå¾ ã¤ããããã¾ããã ããã¦webpackerã対å¿ãã¦ããããå³å°å ¥ãªãã¦ãã¾ãããã¯ãããªãã
ããã«ã¡ã¯ãhachi8833ã§ãã Rails 5ã®Webpackerã§ã¤ãã¿ãè¸ã¾ãªãããã«ãå ¬å¼ã®Webpackerããã¥ã¡ã³ãã®è¦ç¹ãã¾ã¨ãã¦ã¿ã¾ããã追å æ å ±ãããã¾ãããä»å¾ãæ´æ°ãããã¨æãã¾ãã rails/webpackerãã å ¬å¼ã®ããã¥ã¡ã³ããåæ£ãã¦ããã®ã¨ãmdãã¡ã¤ã«åããå 容ãæ¨æ¸¬ãã«ããã¦è¦éãããããªãã®ã§ããã¡ã¤ã«ã®ä¸¦ã³ãåç·¨æãã¦æ¦è¦ãä¸è¦§ã§ããããã«ãã¾ããï¼ããã¦ãã¡ã¤ã«åã®é ã«çªå·ã§ãæ¯ã£ã¦ãããã°...ï¼ãå ·ä½çãªè¨å®æ¹æ³ã«ã¤ãã¦ã¯ãªã³ã¯å ãã覧ãã ããã âæ¦è¦ ããã¥ã¡ã³ããªãã¸ããª: rails/webpacker/tree/master/docs -- mdã16ãã¡ã¤ã«ããã¾ããæ¬è¨äºã§ã¯ãã¡ãã®ã¿ãæ±ãã¾ãã ä¸ã®ããã¥ã¡ã³ããªãã¸ããªã®æçµæ´æ°æ¥: 2018/04/23 æ´æ°ã誤ãã«ãæ°ã¥ãã®æ¹ã¯@hachi8833ã¾ã§ãç¥ãã
javascriptã®éçºã§ã¯ãsassãtypescriptãªã©ã®ã³ã³ãã¤ã«ãminifyãautoprefixerã§ã®æé©åãä¾åé¢ä¿ã解決ãbundleãããªã©å¤æ§ãªå·¥ç¨ãããã®ã§ãå±äººåã»è·äººä¾åãé¿ããããã«ã¿ã¹ã¯ã©ã³ãã¼ã§ã®èªååãæããå½ããåã«è¡ããã¦ãã¾ãã webpackã¯ãã®æã®ãã¼ã«ã®ããã¡ã¯ãã§ããwebpackã¯ã¿ã¹ã¯ã®èªååæ¯æ´ã§ã¯ãªãããªãã§ãjsã«ã¾ã¨ããã¨ããä»äºããã¾ãããäºã«ç¹åãã¦ãã¾ããgulpãbrowserifyã§è¡ãªã£ã¦ãããããªã¿ã¹ã¯ã®èªååã¯npm scriptã§ååãããã¨ããå²ãåããæãã¾ãã ãªãã§ãjsã§æ±ããããã«ããã®ã§ãcssãç»åãhtmlãjså ã«ãã¼ãã§ããè¨å®ãç ©éã«ãªãã«ãããªãã¾ãã webpackã®loaderã¨ããä»çµã¿ãjsã¸ã®çµã¿è¾¼ã¿ãæé©åããã¾ããã£ã¦ãããã®ã§ãããã©ããããã®ãæ¤è¨¼ãã¦ããã¾ã
å æ¥ãFacebook㯠è¨å¤§ãªãã«ãªã¯ã¨ã¹ã ãReactã«ãã¼ã¸ãã¦ãæ¢åã®ãã«ãã·ã¹ãã ã Rollup ãã¼ã¹ã®ã·ã¹ãã ã«ç§»è¡ãã¾ããã ãã®çµæ ã ä½äººãã®äººã ããããªãwebpackã§ã¯ãªãRollupãé¸ãã ã®ããã¨ãã質åãå¯ãããã¾ããã ããã¯ããã£ã¨ããªçåã§ãããã webpack ã¯ãè¿å¹´JavaScriptã³ãã¥ããã£ã§æãè©ä¾¡ããã¦ãããã¼ã«ã®1ã¤ã§ããæ¯æã®ãã¦ã³ãã¼ãæ°ã¯ä½ç¾ä¸ä»¶ã«ãããã³ãä½ä¸åãã®ã¦ã§ããµã¤ããã¢ããªã±ã¼ã·ã§ã³ã«ä½¿ç¨ããã¦ãã¾ãã巨大ãªã¨ã³ã·ã¹ãã ããããã³ã³ããªãã¥ã¼ã¿ãå¤ããã¾ããããã«ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã¨ãã¦ã¯çããã ããªãã®å¯ä»é ãéã¾ã£ã¦ãã¾ãã ããã«æ¯ã¹ãã¨Rollupã¯å°è¦æ¨¡ã§ãããããReact以å¤ã«ããVueãEmberãPreactãD3ãThree.jsãMomentãªã©ãæ°ã ã®æåãªã©ã¤ãã©ãªã«
Since the beginning of August â when we forked webpack/webpack#master for the next branch â weâve seen an incredible influx of contributions! Git contribution stats for the webpack next branch at a glance using gitinspector! Try it on your project to see insights. PS: This doesnât include the incredible work done in our webpack-cli team and webpack-contrib organization supporting our loaders and p
Lessons learned adopting the Webpacker gem in an existing Rails app In case you missed the news, Rails is loving JavaScript and Rails 5.1 ships with the option to compile JavaScript with webpack via the Webpacker gem. This is a big change after years of the Rails asset pipeline running on Sprockets. My team at LearnZillion recently decided to embrace this change and make the switch to webpack with
ããã«ã¡ã¯ãã¡ããã¢ã§ã¨ã³ã¸ãã¢ããã¦ããæä¸(pipopotamasu · GitHub)ã§ãã æ®æ®µã¯Railsã触ã£ã¦ãã¾ãããæã ããã³ãã¨ã³ãå¨ãã®éçºããã¦ãã¾ãã ä»åã¯ã¡ããã¢ã®ç°å¢ã«ãããWebpackerå°å ¥ã¨ããã³ãã¨ã³ãå¨ãã®æ¹åããã¼ãã«è¨äºãæ¸ãã¾ãã ç®æ¬¡ ãªãWebpacker(Webpack)ãå°å ¥ããã®ã? ããã³ãã¨ã³ãæ¹åè¨ç» Webpackerã®å°å ¥ã§æ°ãã¤ããã㨠github.com ãªãWebpacker(Webpack)ãå°å ¥ããã®ã? Webpackerãå°å ¥ããèæ¯ã¨ãã¦ã主ã«2ã¤ã®èª²é¡ãããã¾ããã JavaScriptã®ãã«ãæéãé·ã ããã±ã¼ã¸ã®ãã¼ã¸ã§ã³ç®¡çãã§ããªã JavaScriptã®ãã«ãæéãé·ã å ã ã¡ããã¢ã®ããã³ãã¨ã³ãéçºã«ããã¦Browserifyã¨ããbundlerã使ç¨ãã¦ãã¾ããã ããããããã«ã¯ã
ã¨ã³ã¸ãã¢ã®ææï¼@c5meruï¼ã§ãã ãã®åã®æ¥æã¯ãHTML5ã«ã³ãã¡ã¬ã³ã¹ã«ãã©ã³ãã£ã¢ã¹ã¿ããã¨ãã¦åå ãã¦ãã¾ããã ããã¤ãè´è¡ã¨ãã¦ãè´ããã¨ãã§ãã¦ã¨ã¦ã楽ããã£ãã®ã§ããããã£ã¨ç«ã¡ã£ã±ãªãã ã£ãã®ã§ä»ãããè °ãçãã§ãâ¦éåä¸è¶³â¦(´ã»Ïã»ï½) ãã¦ãå¼ç¤¾ã§ã¯è¡¨é¡ã®éããJOBLISTã®CoffeeScriptã®ã³ã¼ããES2015ï¼ES6ï¼ã«ç§»è¡ãã¾ããã 移è¡ã®çµç·¯ 移è¡åã¯Railsã§ããããªæãã®ããã³ãã¨ã³ãã§ããã JSã®ã©ã¤ãã©ãªã¯venderä¸ã«ç´æ¥ç½®ãããgemã§ç®¡ç CoffeeScript jQueryãã¼ã¹ã®éçº ããã§ãããå¹ççã§é«å質ãªããã³ãã¨ã³ãéçºãç®æãã«ããã£ã¦ã社å ã§ä»¥ä¸ã®ãããªç¹ãæ¤è¨ãã¾ããã npmããyarnãç¨ããããã±ã¼ã¸ç®¡ç CoffeeScriptããES2015ï¼ES6ï¼ã«ç§»è¡ React.jsãVue.js
After we released webpack v2, we made some promises to the community. We promised that we would deliver the features you voted for. Moreover, we promised to deliver them in a faster, more stable release cycle. No more year-long betas, no breaking changes between release candidates. We promised to do you right by you, the community that makes webpack thrive. The webpack team is proud to announce th
ããã«ã¡ã¯ããã¼ã±ãã£ã³ã°ãããã¯ãéçºé¨ã®é·ç°ã§ãã ãã®è¨äºã§ã¯ãç§ãç¾å¨é²ãã¦ããããã¸ã§ã¯ãã§ãWebpackerã使ã£ãJavaScriptã®ã¢ã¸ã¥ã¼ã«ç®¡çãå°å ¥ããã®ã§ãããã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã Webpackerã¨ã¯ Webpackerã¨ã¯ãWebpackãç¨ãã¦Railsä¸ã§JavaScriptéçºãããããã«å¿ è¦ãªä¸é£ã®æµããæä¾ãã¦ããããRails organizationã§éçºããã¦ããgemã§ãã ããã¾ã§ãRailsä¸ã§JavaScriptã®ããã±ã¼ã¸ãã©ã®ããã«ç®¡çããããã¾ããã¢ã¸ã¥ã¼ã«ä¾åãã©ã®ããã«è§£æ±ºãããã«ã¤ãã¦ãå¤ãã®é¸æè¢ããããããããã©ãçµã¿åããã¦ä½¿ãã®ãã«ã¤ãã¦æ©ã¾ããã¦ãã¾ããã ãã®ããã°ã§ãéå»ã«ä½åº¦ãè¨äºãæ稿ããã¦ããããã®ä¸ã§ãè¤æ°ã®é¸æè¢ãä¸ãããã¦ãã¾ãã webpackã使ã£ã Railsä¸ã§ã®Reactéçº
Ruby on Rails ã® 5.1.0.beta1ããªãªã¼ã¹ããã¾ãããï¼ weblog.rubyonrails.org ä»äºã§Railsã使ããã®ã¨ãã¦ã¡ããã¨è§¦ã£ã¦ãããã°ã¨æããã¾ãã¯èªåã®å¥½ããªJavaScriptå¨ããã©ããããè¯ããªã£ãã®ãè¦ã¦ã¿ãã¨ããããªãã³ã£ãããã¾ãããJavaScriptãããéçºããããã§ãã webpack ããã£ã¦ yarn ãããã¾ãããReactãVueãangular ã¾ã§ rake ã¿ã¹ã¯ã§ã»ããã¢ããã§ãã¾ããã¡ãã£ã¨åã¾ã§Railsã§JavaScriptããã®ãè¾ããªãã¦è¨ã£ã¦ããã®ãåã¿ããã§ãã»ã»ã»ã ä»åã¯Rails 5.1.0 㧠Vue.js ã使ã£ã¦æ°ããããã¸ã§ã¯ããä½ãã¨ããã¾ã§ãã£ã¦ã¿ã¾ããã rails new rails webpacker:install:vue Webpackã§ã®ãã«ã Hot Modul
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}