{"action":"created","issue":{"url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/1","repository_url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin","labels_url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/1/comments","events_url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/1/events","html_url":"https://github.com/NMFR/optimize-css-assets-webpack-plugin/issues/1","id":172514542,"number":1,"title":"Image loading via CSS url() returns a link to \"[object Object]\"","user":{"login":"emilyaviva","id":12450261,"avatar_url":"https://avatars.githubusercontent.com/u/12450261?v=3","gravatar_id":"","url":"https://api.github.com/users/emilyaviva","html_url":"https://github.com/emilyaviva","followers_url":"https://api.github.com/users/emilyaviva/followers","following_url":"https://api.github.com/users/emilyaviva/following{/other_user}","gists_url":"https://api.github.com/users/emilyaviva/gists{/gist_id}","starred_url":"https://api.github.com/users/emilyaviva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilyaviva/subscriptions","organizations_url":"https://api.github.com/users/emilyaviva/orgs","repos_url":"https://api.github.com/users/emilyaviva/repos","events_url":"https://api.github.com/users/emilyaviva/events{/privacy}","received_events_url":"https://api.github.com/users/emilyaviva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-22T17:56:17Z","updated_at":"2016-09-14T15:00:54Z","closed_at":"2016-09-14T15:00:54Z","body":"In my optimized CSS run through this package, where I have an image being loaded in via CSS `url()`, it creates a link to `[object Object]`, e.g.\r\n```\r\nbackground: url('../pages/images/myLogo.png') top left no-repeat;\r\n```\r\ngets transformed in such a way that the browser looks for `localhost:3000/[object Object]`.\r\n\r\nFor context, we're using [Gatsby](https://github.com/gatsbyjs/gatsby), modifying our Webpack config in the following way:\r\n```\r\nimport OptimizeCssAssetsPlugin from 'optimize-css-assets-webpack-plugin'\r\n\r\nexport function modifyWebpackConfig (config, env) {\r\n  if (env === 'build-css') {\r\n    config.plugin('optimize-css', OptimizeCssAssetsPlugin)\r\n  }\r\n// etc.\r\n```"},"comment":{"url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/comments/247042231","html_url":"https://github.com/NMFR/optimize-css-assets-webpack-plugin/issues/1#issuecomment-247042231","issue_url":"https://api.github.com/repos/NMFR/optimize-css-assets-webpack-plugin/issues/1","id":247042231,"user":{"login":"NMFR","id":13484940,"avatar_url":"https://avatars.githubusercontent.com/u/13484940?v=3","gravatar_id":"","url":"https://api.github.com/users/NMFR","html_url":"https://github.com/NMFR","followers_url":"https://api.github.com/users/NMFR/followers","following_url":"https://api.github.com/users/NMFR/following{/other_user}","gists_url":"https://api.github.com/users/NMFR/gists{/gist_id}","starred_url":"https://api.github.com/users/NMFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NMFR/subscriptions","organizations_url":"https://api.github.com/users/NMFR/orgs","repos_url":"https://api.github.com/users/NMFR/repos","events_url":"https://api.github.com/users/NMFR/events{/privacy}","received_events_url":"https://api.github.com/users/NMFR/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T15:00:54Z","updated_at":"2016-09-14T15:00:54Z","body":"closing as there is no activity in the issue"}}
{"actor":{"display_login":"NMFR"}}