{"action":"created","issue":{"url":"https://api.github.com/repos/substack/brfs/issues/57","labels_url":"https://api.github.com/repos/substack/brfs/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/substack/brfs/issues/57/comments","events_url":"https://api.github.com/repos/substack/brfs/issues/57/events","html_url":"https://github.com/substack/brfs/issues/57","id":104425419,"number":57,"title":"Webpack - Uncaught TypeError: fs.readFileSync is not a function","user":{"login":"supermrji","id":4469220,"avatar_url":"https://avatars.githubusercontent.com/u/4469220?v=3","gravatar_id":"","url":"https://api.github.com/users/supermrji","html_url":"https://github.com/supermrji","followers_url":"https://api.github.com/users/supermrji/followers","following_url":"https://api.github.com/users/supermrji/following{/other_user}","gists_url":"https://api.github.com/users/supermrji/gists{/gist_id}","starred_url":"https://api.github.com/users/supermrji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermrji/subscriptions","organizations_url":"https://api.github.com/users/supermrji/orgs","repos_url":"https://api.github.com/users/supermrji/repos","events_url":"https://api.github.com/users/supermrji/events{/privacy}","received_events_url":"https://api.github.com/users/supermrji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T08:18:58Z","updated_at":"2015-09-02T09:30:55Z","closed_at":null,"body":"# Webpack.config.js\r\n\r\n    node: {\r\n        fs: \"empty\"\r\n    },\r\n    module: {\r\n        loaders: [{\r\n            test: /\\.json$/,\r\n            include: path.join(__dirname, 'node_modules', 'pixi.js'),\r\n            loader: 'json'\r\n        }, {\r\n            test: /\\.js$/,\r\n            exclude: path.join(__dirname, 'node_modules'),\r\n            loader: 'babel'\r\n        }, {\r\n            test: /\\.png$|\\.jpe?g$|\\.gif$|img\\/.*\\.svg$/,\r\n            loader: 'file?name=' + opts.img\r\n        }],\r\n        noParse: /\\.min\\.js/\r\n    },\r\n\r\nIt's show `Uncaught TypeError: fs.readFileSync is not a function`\r\n\r\nIf I remove \r\n     \r\n    node: {\r\n        fs: \"empty\"\r\n    }\r\n\r\nIt goes `Uncaught Error: Cannot find module \"fs\"`\r\n\r\nin my main script `main.js`\r\n\r\n    import PIXI from 'pixi.js'; // use ES6 width Babel   from npm  pixi.js\r\n\r\nI found it when use `new PIXI.filters.BlurFilter()`\r\n\r\nbut if i use `https://cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.7/pixi.min.js\"` cdn link\r\nIt's all ok .\r\n\r\nDoes any option for Wepack need to set ?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/substack/brfs/issues/comments/136997414","html_url":"https://github.com/substack/brfs/issues/57#issuecomment-136997414","issue_url":"https://api.github.com/repos/substack/brfs/issues/57","id":136997414,"user":{"login":"supermrji","id":4469220,"avatar_url":"https://avatars.githubusercontent.com/u/4469220?v=3","gravatar_id":"","url":"https://api.github.com/users/supermrji","html_url":"https://github.com/supermrji","followers_url":"https://api.github.com/users/supermrji/followers","following_url":"https://api.github.com/users/supermrji/following{/other_user}","gists_url":"https://api.github.com/users/supermrji/gists{/gist_id}","starred_url":"https://api.github.com/users/supermrji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermrji/subscriptions","organizations_url":"https://api.github.com/users/supermrji/orgs","repos_url":"https://api.github.com/users/supermrji/repos","events_url":"https://api.github.com/users/supermrji/events{/privacy}","received_events_url":"https://api.github.com/users/supermrji/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T09:30:55Z","updated_at":"2015-09-02T09:30:55Z","body":"wrong place"}}