{"action":"created","issue":{"url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/1","repository_url":"https://api.github.com/repos/bensampaio/webpack-globals-loader","labels_url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/1/comments","events_url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/1/events","html_url":"https://github.com/bensampaio/webpack-globals-loader/issues/1","id":107829406,"number":1,"title":"permission error when using webpack-dev-server","user":{"login":"Krustal","id":442471,"avatar_url":"https://avatars.githubusercontent.com/u/442471?v=3","gravatar_id":"","url":"https://api.github.com/users/Krustal","html_url":"https://github.com/Krustal","followers_url":"https://api.github.com/users/Krustal/followers","following_url":"https://api.github.com/users/Krustal/following{/other_user}","gists_url":"https://api.github.com/users/Krustal/gists{/gist_id}","starred_url":"https://api.github.com/users/Krustal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krustal/subscriptions","organizations_url":"https://api.github.com/users/Krustal/orgs","repos_url":"https://api.github.com/users/Krustal/repos","events_url":"https://api.github.com/users/Krustal/events{/privacy}","received_events_url":"https://api.github.com/users/Krustal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-09-23T00:20:32Z","updated_at":"2016-11-13T12:20:22Z","closed_at":null,"body":"First of all thanks for making this, it is exactly what I've been looking for. I'm running into a permission error when using this loader with _webpack-dev-server_.\n\n```\nERROR in ./~/globals-loader!./src/models/todo.js\nModule build failed: Error: EACCES, permission denied '//vendor.js'\n    at Error (native)\n    at Object.fs.openSync (fs.js:500:18)\n    at Object.fs.writeFileSync (fs.js:1099:15)\n    at Object.module.exports (/path/to/project/node_modules/globals-loader/index.js:23:6)\n @ ./src/main.js 4:0-32\n```\n\nThe require I have is: \n\n``` javascript\nrequire('globals!./models/foo')\n```\n\nI'm looking into this at the moment, but I thought I'd throw this up here first since I've not done a ton of work with Webpack, especially with building loaders.\n"},"comment":{"url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/comments/260182868","html_url":"https://github.com/bensampaio/webpack-globals-loader/issues/1#issuecomment-260182868","issue_url":"https://api.github.com/repos/bensampaio/webpack-globals-loader/issues/1","id":260182868,"user":{"login":"bensampaio","id":1700178,"avatar_url":"https://avatars.githubusercontent.com/u/1700178?v=3","gravatar_id":"","url":"https://api.github.com/users/bensampaio","html_url":"https://github.com/bensampaio","followers_url":"https://api.github.com/users/bensampaio/followers","following_url":"https://api.github.com/users/bensampaio/following{/other_user}","gists_url":"https://api.github.com/users/bensampaio/gists{/gist_id}","starred_url":"https://api.github.com/users/bensampaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensampaio/subscriptions","organizations_url":"https://api.github.com/users/bensampaio/orgs","repos_url":"https://api.github.com/users/bensampaio/repos","events_url":"https://api.github.com/users/bensampaio/events{/privacy}","received_events_url":"https://api.github.com/users/bensampaio/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T12:20:21Z","updated_at":"2016-11-13T12:20:21Z","body":"I looked into this problem in the past few days but I cannot find out how to properly fix it. I believe the problem exists because this loader tries to go against the way webpack expects JS to be dealt with. Instead of emitting a file I should be adding it as an entry to the compiler but the template for the generated output should be different from the usual. I think it is possible to do this but the documentation is not really helpful. They just tell you too look into the source code, which is quite massive and complex...\r\n\r\nSo if anyone here has a deep understanding on how webpack works internally and how could this be done properly then please contact me. Otherwise I don't think I'll have the time to deep dive into this :("}}
{"actor":{"display_login":"bensampaio"}}