{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/1204","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1204/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1204/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1204/events","html_url":"https://github.com/jspm/jspm-cli/issues/1204","id":111381409,"number":1204,"title":"Dependency bundle contains html, css and json modules from app","user":{"login":"nestabur","id":6052881,"avatar_url":"https://avatars.githubusercontent.com/u/6052881?v=3","gravatar_id":"","url":"https://api.github.com/users/nestabur","html_url":"https://github.com/nestabur","followers_url":"https://api.github.com/users/nestabur/followers","following_url":"https://api.github.com/users/nestabur/following{/other_user}","gists_url":"https://api.github.com/users/nestabur/gists{/gist_id}","starred_url":"https://api.github.com/users/nestabur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nestabur/subscriptions","organizations_url":"https://api.github.com/users/nestabur/orgs","repos_url":"https://api.github.com/users/nestabur/repos","events_url":"https://api.github.com/users/nestabur/events{/privacy}","received_events_url":"https://api.github.com/users/nestabur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jspm/jspm-cli/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-10-14T11:46:53Z","updated_at":"2016-01-05T15:52:08Z","closed_at":"2015-10-18T22:00:08Z","body":"I have an scenario where we need to split dependencies and application src in two different bundles (as far as I've seen, this is a common approach and supported by jspm). I've achieved it by executing:\r\n<pre>\r\n$ jspm bundle index - '[npm:**/*]' - '[github:**/*]' \r\n$ jspm bundle app/**/* - [app/**/*]\r\n</pre>\r\nThe problem is that when building the dependency bundle modules belonging to the app are also added (not excluded) like:\r\n<pre>\r\napp/application.html!github:systemjs/plugin-text@0.0.2\r\n</pre>\r\nSo the module is included in both bundles.\r\nThis happens only with no-javascript files (css, html, json).\r\n\r\nBut first of all, is my approach correct?"},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/169041607","html_url":"https://github.com/jspm/jspm-cli/issues/1204#issuecomment-169041607","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/1204","id":169041607,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T15:52:08Z","updated_at":"2016-01-05T15:52:08Z","body":"Specifying the extension explicitly is actually the best-practice yes."}}