{"action":"opened","issue":{"url":"https://api.github.com/repos/tomachristian/css-entry-webpack-plugin/issues/20","repository_url":"https://api.github.com/repos/tomachristian/css-entry-webpack-plugin","labels_url":"https://api.github.com/repos/tomachristian/css-entry-webpack-plugin/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/tomachristian/css-entry-webpack-plugin/issues/20/comments","events_url":"https://api.github.com/repos/tomachristian/css-entry-webpack-plugin/issues/20/events","html_url":"https://github.com/tomachristian/css-entry-webpack-plugin/issues/20","id":221246160,"number":20,"title":"Need way to correct relative paths to url() assets in CSS file.","user":{"login":"kb3eua","id":4258026,"avatar_url":"https://avatars2.githubusercontent.com/u/4258026?v=3","gravatar_id":"","url":"https://api.github.com/users/kb3eua","html_url":"https://github.com/kb3eua","followers_url":"https://api.github.com/users/kb3eua/followers","following_url":"https://api.github.com/users/kb3eua/following{/other_user}","gists_url":"https://api.github.com/users/kb3eua/gists{/gist_id}","starred_url":"https://api.github.com/users/kb3eua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kb3eua/subscriptions","organizations_url":"https://api.github.com/users/kb3eua/orgs","repos_url":"https://api.github.com/users/kb3eua/repos","events_url":"https://api.github.com/users/kb3eua/events{/privacy}","received_events_url":"https://api.github.com/users/kb3eua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-12T12:29:35Z","updated_at":"2017-04-12T12:29:35Z","closed_at":null,"body":"If publicPath is \"dist/\", both the CSS entry file and assets will be placed in the \"dist/\" folder, but the CSS file will contain markup with relative paths such as this:\r\n```css\r\ndiv {\r\n  background-image: url(\"dist/assets/bg.jpg\");\r\n}\r\n```\r\nSuch assets are relative to the CSS file itself, not to the document's `<base href/>`, so the browser will try to fetch \"dist/dist/assets/bg.jpg\", which returns a 404 because it's an invalid path.\r\n\r\nNeed a way to adjust these paths to be relative to the generated CSS file."}}
{"actor":{"display_login":"kb3eua"}}