{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/897","labels_url":"https://api.github.com/repos/webpack/webpack/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/897/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/897/events","html_url":"https://github.com/webpack/webpack/pull/897","id":62487233,"number":897,"title":"First stab at SourceMapDevToolPlugin exclude option","user":{"login":"sebastienbarre","id":329967,"avatar_url":"https://avatars.githubusercontent.com/u/329967?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienbarre","html_url":"https://github.com/sebastienbarre","followers_url":"https://api.github.com/users/sebastienbarre/followers","following_url":"https://api.github.com/users/sebastienbarre/following{/other_user}","gists_url":"https://api.github.com/users/sebastienbarre/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienbarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienbarre/subscriptions","organizations_url":"https://api.github.com/users/sebastienbarre/orgs","repos_url":"https://api.github.com/users/sebastienbarre/repos","events_url":"https://api.github.com/users/sebastienbarre/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienbarre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-17T19:04:02Z","updated_at":"2015-03-26T16:19:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/webpack/webpack/pulls/897","html_url":"https://github.com/webpack/webpack/pull/897","diff_url":"https://github.com/webpack/webpack/pull/897.diff","patch_url":"https://github.com/webpack/webpack/pull/897.patch"},"body":"per @gaearon suggestion, see issue #650 raised by @davidtheclark: \"The problem with this is that the vendor file can get pretty big, and its gigantic sourcemap then severely slows down dev tool initialization on page reload. I would much prefer to only have a sourcemap for my app chunk (and not to have a sourcemap for my vendor chunk).\"\r\n\r\nThis is a first stab at the corresponding ```exclude``` options.\r\nNote that it might get tedious to have to explicitly instantiate ```SourceMapDevToolPlugin```, maybe a more global option such ```as output.sourceMapExcludeChunks``` could be introduced as well.\r\n```\r\n\tplugins: [\r\n\t\tnew webpack.SourceMapDevToolPlugin({\r\n\t\t\tfilename: \"[file].map\",\r\n\t\t\texcludeChunks: [\"vendors\"]\r\n\t\t})\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/86600836","html_url":"https://github.com/webpack/webpack/pull/897#issuecomment-86600836","issue_url":"https://api.github.com/repos/webpack/webpack/issues/897","id":86600836,"user":{"login":"sebastienbarre","id":329967,"avatar_url":"https://avatars.githubusercontent.com/u/329967?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienbarre","html_url":"https://github.com/sebastienbarre","followers_url":"https://api.github.com/users/sebastienbarre/followers","following_url":"https://api.github.com/users/sebastienbarre/following{/other_user}","gists_url":"https://api.github.com/users/sebastienbarre/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienbarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienbarre/subscriptions","organizations_url":"https://api.github.com/users/sebastienbarre/orgs","repos_url":"https://api.github.com/users/sebastienbarre/repos","events_url":"https://api.github.com/users/sebastienbarre/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienbarre/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T16:19:14Z","updated_at":"2015-03-26T16:19:14Z","body":"Anything else you want me to add?"}}