{"action":"created","issue":{"url":"https://api.github.com/repos/claroline/Distribution/issues/610","repository_url":"https://api.github.com/repos/claroline/Distribution","labels_url":"https://api.github.com/repos/claroline/Distribution/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/610/comments","events_url":"https://api.github.com/repos/claroline/Distribution/issues/610/events","html_url":"https://github.com/claroline/Distribution/pull/610","id":159421158,"number":610,"title":"[Webpack] Optimize prod usage and enforce Resources/modules convention","user":{"login":"stefk","id":880921,"avatar_url":"https://avatars.githubusercontent.com/u/880921?v=3","gravatar_id":"","url":"https://api.github.com/users/stefk","html_url":"https://github.com/stefk","followers_url":"https://api.github.com/users/stefk/followers","following_url":"https://api.github.com/users/stefk/following{/other_user}","gists_url":"https://api.github.com/users/stefk/gists{/gist_id}","starred_url":"https://api.github.com/users/stefk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefk/subscriptions","organizations_url":"https://api.github.com/users/stefk/orgs","repos_url":"https://api.github.com/users/stefk/repos","events_url":"https://api.github.com/users/stefk/events{/privacy}","received_events_url":"https://api.github.com/users/stefk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T14:25:12Z","updated_at":"2016-06-09T14:48:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/claroline/Distribution/pulls/610","html_url":"https://github.com/claroline/Distribution/pull/610","diff_url":"https://github.com/claroline/Distribution/pull/610.diff","patch_url":"https://github.com/claroline/Distribution/pull/610.patch"},"body":"\r\n- Dependencies that are included in at least three chunks/modules are automatically moved to a *commons.js* file. That file will contain frequently required libs, avoiding the need to bundle them again and again, and allowing proper caching on client side. That file must be included before every `hotAsset` call.\r\n- Compiled output is minified in prod. [needs a separate PR on claroline/Claroline]\r\n- The Resources/modules directory is where ES6 code is expected to live, thus:\r\n   - imports of modules across different bundles of the distribution are shorthened: `import foo from main/core/Resources/modules/bar` becomes `import foo from main/core/bar`\r\n  - the `modules/` prefix must be omitted in assets.json files"},"comment":{"url":"https://api.github.com/repos/claroline/Distribution/issues/comments/224918830","html_url":"https://github.com/claroline/Distribution/pull/610#issuecomment-224918830","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/610","id":224918830,"user":{"login":"Elorfin","id":5363219,"avatar_url":"https://avatars.githubusercontent.com/u/5363219?v=3","gravatar_id":"","url":"https://api.github.com/users/Elorfin","html_url":"https://github.com/Elorfin","followers_url":"https://api.github.com/users/Elorfin/followers","following_url":"https://api.github.com/users/Elorfin/following{/other_user}","gists_url":"https://api.github.com/users/Elorfin/gists{/gist_id}","starred_url":"https://api.github.com/users/Elorfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elorfin/subscriptions","organizations_url":"https://api.github.com/users/Elorfin/orgs","repos_url":"https://api.github.com/users/Elorfin/repos","events_url":"https://api.github.com/users/Elorfin/events{/privacy}","received_events_url":"https://api.github.com/users/Elorfin/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T14:48:54Z","updated_at":"2016-06-09T14:48:54Z","body":"LGTM"}}
{"actor":{"display_login":"Elorfin"}}