{"action":"created","issue":{"url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/5","labels_url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/5/comments","events_url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/5/events","html_url":"https://github.com/BohdanTkachenko/webpack-split-by-path/issues/5","id":105118282,"number":5,"title":"Upgrade to 0.0.3 breaks bundling CSS files with Webpack","user":{"login":"playpauseandstop","id":21325,"avatar_url":"https://avatars.githubusercontent.com/u/21325?v=3","gravatar_id":"","url":"https://api.github.com/users/playpauseandstop","html_url":"https://github.com/playpauseandstop","followers_url":"https://api.github.com/users/playpauseandstop/followers","following_url":"https://api.github.com/users/playpauseandstop/following{/other_user}","gists_url":"https://api.github.com/users/playpauseandstop/gists{/gist_id}","starred_url":"https://api.github.com/users/playpauseandstop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playpauseandstop/subscriptions","organizations_url":"https://api.github.com/users/playpauseandstop/orgs","repos_url":"https://api.github.com/users/playpauseandstop/repos","events_url":"https://api.github.com/users/playpauseandstop/events{/privacy}","received_events_url":"https://api.github.com/users/playpauseandstop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-06T21:32:14Z","updated_at":"2015-09-07T12:15:35Z","closed_at":null,"body":"I have pretty simple structure for my project,\r\n\r\n```\r\nstatic/\r\n- css/\r\n  - app.css\r\n- projectname/\r\n  - App.js\r\n```\r\n\r\nAnd `App.js` contains an import of `../css/app.css` file,\r\n\r\n```js\r\nimport \"../css/app.css\";\r\n```\r\n\r\nMy webpack config is pretty simple too,\r\n\r\n```js\r\n  new SplitByPathPlugin([\r\n    {\r\n      \"name\": \"vendors\",\r\n      \"path\": path.join(__dirname, \"node_modules\"),\r\n    },\r\n  ]),\r\n```\r\n\r\nAnd everything works fine with `webpack#1.12.1` and `webpack-split-by-path#0.0.2`. But when I tried to update SplitByPathPlugin to `0.0.3` version everything became broken, and I start getting weird errors in console,\r\n\r\n```\r\nERROR in ./static/css/app.css\r\nModule build failed: TypeError: undefined is not a function\r\n    at Object.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/extract-text-webpack-plugin/loader.js:100:11)\r\n    at Compiler.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compiler.js:214:10)\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compiler.js:403:12\r\n    at Compiler.next (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)\r\n    at Compiler.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/extract-text-webpack-plugin/loader.js:78:5)\r\n    at Compiler.next (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:69:14)\r\n    at Compiler.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/CachePlugin.js:40:4)\r\n    at Compiler.applyPluginsAsync (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:71:13)\r\n    at Compiler.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compiler.js:400:9)\r\n    at Compilation.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:576:13)\r\n    at Compilation.applyPluginsAsync (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)\r\n    at Compilation.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:571:10)\r\n    at Compilation.applyPluginsAsync (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)\r\n    at Compilation.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:566:9)\r\n    at Compilation.applyPluginsAsync (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)\r\n    at Compilation.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:562:8)\r\n    at Compilation.applyPluginsAsync (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)\r\n    at Compilation.seal (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:524:7)\r\n    at Compiler.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compiler.js:397:15)\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/tapable/lib/Tapable.js:103:11\r\n    at Compilation.<anonymous> (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:444:10)\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:416:12\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:331:10\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:52:16\r\n    at done (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:248:21)\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:44:16\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/lib/Compilation.js:331:10\r\n    at /Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:52:16\r\n    at Object.async.forEachOf.async.eachOf (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:236:20)\r\n    at Object.async.forEach.async.each (/Users/playpauseandstop/Projects/projectname/node_modules/webpack/node_modules/async/lib/async.js:215:22)\r\n @ ./static/projectname/App.js 25:0-25\r\n```\r\n\r\nAnd as result `app.css` file not built on.\r\n\r\nSo I'm wondering what changed in 0.0.3 which results breaking CSS bundling with webpack?"},"comment":{"url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/comments/138281697","html_url":"https://github.com/BohdanTkachenko/webpack-split-by-path/issues/5#issuecomment-138281697","issue_url":"https://api.github.com/repos/BohdanTkachenko/webpack-split-by-path/issues/5","id":138281697,"user":{"login":"s-panferov","id":198327,"avatar_url":"https://avatars.githubusercontent.com/u/198327?v=3","gravatar_id":"","url":"https://api.github.com/users/s-panferov","html_url":"https://github.com/s-panferov","followers_url":"https://api.github.com/users/s-panferov/followers","following_url":"https://api.github.com/users/s-panferov/following{/other_user}","gists_url":"https://api.github.com/users/s-panferov/gists{/gist_id}","starred_url":"https://api.github.com/users/s-panferov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-panferov/subscriptions","organizations_url":"https://api.github.com/users/s-panferov/orgs","repos_url":"https://api.github.com/users/s-panferov/repos","events_url":"https://api.github.com/users/s-panferov/events{/privacy}","received_events_url":"https://api.github.com/users/s-panferov/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T12:15:35Z","updated_at":"2015-09-07T12:15:35Z","body":"@BohdanTkachenko the issue appears on v0.0.2 too."}}