{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/2441","repository_url":"https://api.github.com/repos/lodash/lodash","labels_url":"https://api.github.com/repos/lodash/lodash/issues/2441/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/2441/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/2441/events","html_url":"https://github.com/lodash/lodash/issues/2441","id":161424822,"number":2441,"title":"Suggestion: Add `files` property to package.json","user":{"login":"xswordsx","id":3787795,"avatar_url":"https://avatars.githubusercontent.com/u/3787795?v=3","gravatar_id":"","url":"https://api.github.com/users/xswordsx","html_url":"https://github.com/xswordsx","followers_url":"https://api.github.com/users/xswordsx/followers","following_url":"https://api.github.com/users/xswordsx/following{/other_user}","gists_url":"https://api.github.com/users/xswordsx/gists{/gist_id}","starred_url":"https://api.github.com/users/xswordsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xswordsx/subscriptions","organizations_url":"https://api.github.com/users/xswordsx/orgs","repos_url":"https://api.github.com/users/xswordsx/repos","events_url":"https://api.github.com/users/xswordsx/events{/privacy}","received_events_url":"https://api.github.com/users/xswordsx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-21T12:33:36Z","updated_at":"2016-06-21T12:43:22Z","closed_at":"2016-06-21T12:40:22Z","body":"Adding the following lines to package.json [files](https://docs.npmjs.com/files/package.json#files)\r\n```js\r\n...\r\n\r\n\"files\": [\r\n  \"lodash.js\",\r\n  \"lodash.min.js\"\r\n],\r\n\r\n...\r\n``` \r\nto `package.json` will halve the module size:\r\n\r\n|Modification|Size|\r\n|----:|:-----|\r\n|Original| 1,27 MB (1 337 525 bytes)|\r\n|With `core.js & core.min.js`| 699 KB (716 321 bytes)|\r\n|Without `core.js & core.min.js`| 575 KB (589 551 bytes)|\r\n"},"comment":{"url":"https://api.github.com/repos/lodash/lodash/issues/comments/227427828","html_url":"https://github.com/lodash/lodash/issues/2441#issuecomment-227427828","issue_url":"https://api.github.com/repos/lodash/lodash/issues/2441","id":227427828,"user":{"login":"demoneaux","id":813865,"avatar_url":"https://avatars.githubusercontent.com/u/813865?v=3","gravatar_id":"","url":"https://api.github.com/users/demoneaux","html_url":"https://github.com/demoneaux","followers_url":"https://api.github.com/users/demoneaux/followers","following_url":"https://api.github.com/users/demoneaux/following{/other_user}","gists_url":"https://api.github.com/users/demoneaux/gists{/gist_id}","starred_url":"https://api.github.com/users/demoneaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demoneaux/subscriptions","organizations_url":"https://api.github.com/users/demoneaux/orgs","repos_url":"https://api.github.com/users/demoneaux/repos","events_url":"https://api.github.com/users/demoneaux/events{/privacy}","received_events_url":"https://api.github.com/users/demoneaux/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T12:43:22Z","updated_at":"2016-06-21T12:43:22Z","body":"Hi @xswordsx! We currently maintain [a separate branch](https://github.com/lodash/lodash/tree/npm) which has the built version of lodash for publishing to npm. The npm package already has all unnecessary files removed (tests, vendor files, etc.). The additional file size you’re seeing is due to separate files for each module (eg. `lodash/each`)."}}
{"actor":{"display_login":"demoneaux"}}