{"action":"created","issue":{"url":"https://api.github.com/repos/jtangelder/sass-loader/issues/138","labels_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/138/comments","events_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/138/events","html_url":"https://github.com/jtangelder/sass-loader/issues/138","id":98792006,"number":138,"title":"Handle CSS imports correctly","user":{"login":"jhnns","id":781746,"avatar_url":"https://avatars.githubusercontent.com/u/781746?v=3","gravatar_id":"","url":"https://api.github.com/users/jhnns","html_url":"https://github.com/jhnns","followers_url":"https://api.github.com/users/jhnns/followers","following_url":"https://api.github.com/users/jhnns/following{/other_user}","gists_url":"https://api.github.com/users/jhnns/gists{/gist_id}","starred_url":"https://api.github.com/users/jhnns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhnns/subscriptions","organizations_url":"https://api.github.com/users/jhnns/orgs","repos_url":"https://api.github.com/users/jhnns/repos","events_url":"https://api.github.com/users/jhnns/events{/privacy}","received_events_url":"https://api.github.com/users/jhnns/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-03T16:48:37Z","updated_at":"2015-08-06T15:13:56Z","closed_at":"2015-08-06T14:25:52Z","body":"node-sass treats CSS imports this way:\r\n\r\n## If a file ending is provided...\r\n...the import statement stays untouched, but the file contents are not included:\r\n\r\n```css\r\n@import \"./some-css-module.css\";\r\n```\r\n\r\nbecomes\r\n\r\n```css\r\n@import url(./some-css-module.css);\r\n```\r\n\r\n## If *no* file ending is provided...\r\n...it is treated as `scss` and included.\r\n\r\nThe sass-loader should treat it the same way. Currently the sass-loader outputs an absolute path to the CSS file which is pretty useless.\r\n"},"comment":{"url":"https://api.github.com/repos/jtangelder/sass-loader/issues/comments/128407236","html_url":"https://github.com/jtangelder/sass-loader/issues/138#issuecomment-128407236","issue_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/138","id":128407236,"user":{"login":"jsg2021","id":577453,"avatar_url":"https://avatars.githubusercontent.com/u/577453?v=3","gravatar_id":"","url":"https://api.github.com/users/jsg2021","html_url":"https://github.com/jsg2021","followers_url":"https://api.github.com/users/jsg2021/followers","following_url":"https://api.github.com/users/jsg2021/following{/other_user}","gists_url":"https://api.github.com/users/jsg2021/gists{/gist_id}","starred_url":"https://api.github.com/users/jsg2021/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsg2021/subscriptions","organizations_url":"https://api.github.com/users/jsg2021/orgs","repos_url":"https://api.github.com/users/jsg2021/repos","events_url":"https://api.github.com/users/jsg2021/events{/privacy}","received_events_url":"https://api.github.com/users/jsg2021/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T15:13:56Z","updated_at":"2015-08-06T15:13:56Z","body":"It looks like the CSS content is being interpreted as SCSS and using the same 'pwd' (for lack of a better term)  \r\n\r\nso a fonts css file with the content below looks at the main SCSS's path instead of the imported CSS's path and icomoon.woff/svg files get the lovely `Cannot resolve 'file' or 'directory' ./icomoon.woff in /Users/jgrimes/Workspace/nti.web.mobile/src/main/resources/scss` ...when the file is actually not under that `scss` directory and is under `../fonts/icomoon/` which is where the css file is.\r\n```\r\n@font-face {\r\n\tfont-family: 'icomoon';\r\n\tsrc: url(icomoon.woff) format('woff'),\r\n\t\turl(icomoon.svg) format('svg');\r\n\tfont-weight: normal;\r\n\tfont-style: normal;\r\n}\r\n``` "}}