{"action":"opened","issue":{"url":"https://api.github.com/repos/playrjp/playrjp.github.io/issues/79","labels_url":"https://api.github.com/repos/playrjp/playrjp.github.io/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/playrjp/playrjp.github.io/issues/79/comments","events_url":"https://api.github.com/repos/playrjp/playrjp.github.io/issues/79/events","html_url":"https://github.com/playrjp/playrjp.github.io/issues/79","id":127085043,"number":79,"title":"Webpack","user":{"login":"hirofumi1987","id":7459529,"avatar_url":"https://avatars.githubusercontent.com/u/7459529?v=3","gravatar_id":"","url":"https://api.github.com/users/hirofumi1987","html_url":"https://github.com/hirofumi1987","followers_url":"https://api.github.com/users/hirofumi1987/followers","following_url":"https://api.github.com/users/hirofumi1987/following{/other_user}","gists_url":"https://api.github.com/users/hirofumi1987/gists{/gist_id}","starred_url":"https://api.github.com/users/hirofumi1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirofumi1987/subscriptions","organizations_url":"https://api.github.com/users/hirofumi1987/orgs","repos_url":"https://api.github.com/users/hirofumi1987/repos","events_url":"https://api.github.com/users/hirofumi1987/events{/privacy}","received_events_url":"https://api.github.com/users/hirofumi1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T09:50:23Z","updated_at":"2016-01-17T09:50:23Z","closed_at":null,"body":"SPAを構築する際にはやはりWebpackの豊富な機能が生きる。\r\n\r\n今作成しているWebアプリはUniversalでFluxでi18nなWebアプリとなっており、無計画にファイルを結合し続けると初期リロードの問題が出てくる。\r\n\r\n3度の法則にしたがって開発過程でも適切なモジュール分割を容易に行うことができるのはWebpackの大きな強みだと感じた。\r\n\r\n- [code splitting](https://webpack.github.io/docs/code-splitting.html)\r\n- [Lazy loaded entry points | React Webpack cookbook](https://christianalfoni.github.io/react-webpack-cookbook/Lazy-loaded-entry-points.html)\r\n- [webpackのrequire.ensureでDynamic Loadingをして大規模アプリケーションを作る - Qiita](http://qiita.com/RyotaSugawara/items/0effa7ce42adfcb66a35)\r\n\r\nCSSや画像はちょっと考えがあり、ローダーを使用していない。\r\n\r\n- [RequireJS等はもう古い。WebPackとは？｜1 pixel｜サイバーエージェント公式クリエイターズブログ](http://ameblo.jp/ca-1pixel/entry-11884453208.html)\r\n- [WebPackを使ってJavaScriptを効率的に書くチュートリアル【入門編】 | 株式会社LIG](http://liginc.co.jp/web/js/other-js/148813)\r\n"}}