{"action":"created","issue":{"url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/3","labels_url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/3/comments","events_url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/3/events","html_url":"https://github.com/soundcloud/split-by-name-webpack-plugin/issues/3","id":70815522,"number":3,"title":"Question: Does this work with node_modules ?","user":{"login":"adjavaherian","id":3650448,"avatar_url":"https://avatars.githubusercontent.com/u/3650448?v=3","gravatar_id":"","url":"https://api.github.com/users/adjavaherian","html_url":"https://github.com/adjavaherian","followers_url":"https://api.github.com/users/adjavaherian/followers","following_url":"https://api.github.com/users/adjavaherian/following{/other_user}","gists_url":"https://api.github.com/users/adjavaherian/gists{/gist_id}","starred_url":"https://api.github.com/users/adjavaherian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adjavaherian/subscriptions","organizations_url":"https://api.github.com/users/adjavaherian/orgs","repos_url":"https://api.github.com/users/adjavaherian/repos","events_url":"https://api.github.com/users/adjavaherian/events{/privacy}","received_events_url":"https://api.github.com/users/adjavaherian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T23:01:00Z","updated_at":"2015-05-11T19:53:58Z","closed_at":null,"body":"It doesn't seem to work with node_modules in my configuration.\r\n\r\n```javascript\r\n        new SplitByNamePlugin({\r\n            buckets: [{\r\n                name: 'nodemods',\r\n                regex: /node_modules\\//\r\n            }]\r\n        })\r\n```"},"comment":{"url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/comments/101030452","html_url":"https://github.com/soundcloud/split-by-name-webpack-plugin/issues/3#issuecomment-101030452","issue_url":"https://api.github.com/repos/soundcloud/split-by-name-webpack-plugin/issues/3","id":101030452,"user":{"login":"BohdanTkachenko","id":929598,"avatar_url":"https://avatars.githubusercontent.com/u/929598?v=3","gravatar_id":"","url":"https://api.github.com/users/BohdanTkachenko","html_url":"https://github.com/BohdanTkachenko","followers_url":"https://api.github.com/users/BohdanTkachenko/followers","following_url":"https://api.github.com/users/BohdanTkachenko/following{/other_user}","gists_url":"https://api.github.com/users/BohdanTkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/BohdanTkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BohdanTkachenko/subscriptions","organizations_url":"https://api.github.com/users/BohdanTkachenko/orgs","repos_url":"https://api.github.com/users/BohdanTkachenko/repos","events_url":"https://api.github.com/users/BohdanTkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/BohdanTkachenko/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T19:53:58Z","updated_at":"2015-05-11T19:53:58Z","body":"I faced the same problem. The problem is that this plugin not checks for absolute path. I created [new plugin](https://github.com/BohdanTkachenko/webpack-split-by-path) that is based on this one. There is also sample code for node_modules."}}