{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/grunt-webpack/issues/77","repository_url":"https://api.github.com/repos/webpack/grunt-webpack","labels_url":"https://api.github.com/repos/webpack/grunt-webpack/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/webpack/grunt-webpack/issues/77/comments","events_url":"https://api.github.com/repos/webpack/grunt-webpack/issues/77/events","html_url":"https://github.com/webpack/grunt-webpack/issues/77","id":172429945,"number":77,"title":"Circular Reference using webpack & useminPrepare - caused by style-loader","user":{"login":"mkeggen-iforium","id":8982905,"avatar_url":"https://avatars.githubusercontent.com/u/8982905?v=3","gravatar_id":"","url":"https://api.github.com/users/mkeggen-iforium","html_url":"https://github.com/mkeggen-iforium","followers_url":"https://api.github.com/users/mkeggen-iforium/followers","following_url":"https://api.github.com/users/mkeggen-iforium/following{/other_user}","gists_url":"https://api.github.com/users/mkeggen-iforium/gists{/gist_id}","starred_url":"https://api.github.com/users/mkeggen-iforium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkeggen-iforium/subscriptions","organizations_url":"https://api.github.com/users/mkeggen-iforium/orgs","repos_url":"https://api.github.com/users/mkeggen-iforium/repos","events_url":"https://api.github.com/users/mkeggen-iforium/events{/privacy}","received_events_url":"https://api.github.com/users/mkeggen-iforium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-22T11:29:35Z","updated_at":"2016-08-22T11:29:35Z","closed_at":null,"body":"Webpack: 1.12.14\r\ngrunt-webpack: 1.0.11\r\nWindows & Linux\r\n\r\nOur Travis build started failing today reporting \"Circular Reference detected\"\r\n\r\nI have replicated this locally on my development machine by deleting my node_modules and running npm install\r\n\r\nIt seems that running grunt webpack useminPrepare is causing the issue.  Running them individually is fine.\r\n\r\nI have spent some time altering the build file and code to narrow down the issue and it seems that it is the css loading which causes the issue.\r\n\r\nWhen I removed the line of code \"var css = require(\"./dialog.css\");\" the build works fine\r\n\r\nIn my webpack config I have\r\nmodule: {\r\n\t\t\t\t\tloaders: [\r\n\t\t\t\t\t\t{test: /\\.css$/, loader: \"style-loader!css-loader\"},\r\n\t\t\t\t\t\t{test: /\\.html$/, loader: \"html-loader\"}\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\r\nPackage file contains:\r\n\"grunt-usemin\": \"^2.3.0\",\r\n\"grunt-webpack\": \"^1.0.11\",\r\n\"style-loader\": \"^0.13.0\",\r\n\"webpack\": \"^1.12.14\",\r\n\"webpack-dev-server\": \"^1.14.1\",\r\n\"css-loader\": \"^0.23.1\",\r\n\r\n\r\nIf anyone can assist with this issue it would be greatly appreciated"}}
{"actor":{"display_login":"mkeggen-iforium"}}