{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/278","repository_url":"https://api.github.com/repos/webpack-contrib/file-loader","labels_url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/278/comments","events_url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/278/events","html_url":"https://github.com/webpack-contrib/file-loader/issues/278","id":320191325,"number":278,"title":"Background image become [object object]","user":{"login":"developerjaison","id":20298536,"avatar_url":"https://avatars1.githubusercontent.com/u/20298536?v=4","gravatar_id":"","url":"https://api.github.com/users/developerjaison","html_url":"https://github.com/developerjaison","followers_url":"https://api.github.com/users/developerjaison/followers","following_url":"https://api.github.com/users/developerjaison/following{/other_user}","gists_url":"https://api.github.com/users/developerjaison/gists{/gist_id}","starred_url":"https://api.github.com/users/developerjaison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developerjaison/subscriptions","organizations_url":"https://api.github.com/users/developerjaison/orgs","repos_url":"https://api.github.com/users/developerjaison/repos","events_url":"https://api.github.com/users/developerjaison/events{/privacy}","received_events_url":"https://api.github.com/users/developerjaison/received_events","type":"User","site_admin":false},"labels":[{"id":595352125,"url":"https://api.github.com/repos/webpack-contrib/file-loader/labels/flag:%20Needs%20more%20info","name":"flag: Needs more info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-04T08:29:37Z","updated_at":"2018-05-04T17:38:43Z","closed_at":null,"author_association":"NONE","body":"Background image become [object object] after bundling\r\n\r\n* Operating System:Linux\r\n* Node Version:8.10.0\r\n* NPM Version:5.8.0\r\n* webpack Version:4.6.0\r\n* file-loader Version:1.1.11\r\n\r\n\r\n##### webpack.config.js\r\n```\r\nmodule: {\r\n        rules: [{\r\n                test: /\\.css$/,\r\n                use: [{ loader: \"style-loader\" }, { loader: \"css-loader\" }]\r\n            },\r\n            {\r\n                test: /\\.(png|woff|woff2|eot|ttf|svg|gif)$/,\r\n                use: [\r\n                {\r\n                    loader: \"url-loader\",\r\n                    options: {\r\n                        limit: 10000\r\n                    }\r\n                },\r\n                {\r\n                    loader:'file-loader'\r\n                }]\r\n            },\r\n            {\r\n                test: /\\.html$/,\r\n                use: [{\r\n                        loader: \"ngtemplate-loader?relativeTo=/UI/&module=app\"\r\n                    },\r\n                    {\r\n                        loader: \"html-loader?attrs=img:data-src\"\r\n                    }\r\n                ]\r\n            },\r\n            {\r\n                test: require.resolve(\"./UI/bower_components/angular/angular.min.js\"),\r\n                use: [{\r\n                    loader: \"exports-loader?window.angular\"\r\n                }]\r\n            }\r\n        ]\r\n    },\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/comments/386674120","html_url":"https://github.com/webpack-contrib/file-loader/issues/278#issuecomment-386674120","issue_url":"https://api.github.com/repos/webpack-contrib/file-loader/issues/278","id":386674120,"user":{"login":"fmavdb","id":5363672,"avatar_url":"https://avatars1.githubusercontent.com/u/5363672?v=4","gravatar_id":"","url":"https://api.github.com/users/fmavdb","html_url":"https://github.com/fmavdb","followers_url":"https://api.github.com/users/fmavdb/followers","following_url":"https://api.github.com/users/fmavdb/following{/other_user}","gists_url":"https://api.github.com/users/fmavdb/gists{/gist_id}","starred_url":"https://api.github.com/users/fmavdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmavdb/subscriptions","organizations_url":"https://api.github.com/users/fmavdb/orgs","repos_url":"https://api.github.com/users/fmavdb/repos","events_url":"https://api.github.com/users/fmavdb/events{/privacy}","received_events_url":"https://api.github.com/users/fmavdb/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T17:38:43Z","updated_at":"2018-05-04T17:38:43Z","author_association":"NONE","body":"This seems to occur if you dynamically import a file (instead of statically referencing the file in the head of the document). It only happens with webpack 4 and file-loader 1.1.11, webpack 3 works fine. I'll provide a reproducible repro soon."}}
{"actor":{"display_login":"fmavdb"}}