{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/sass-rails/issues/348","labels_url":"https://api.github.com/repos/rails/sass-rails/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/rails/sass-rails/issues/348/comments","events_url":"https://api.github.com/repos/rails/sass-rails/issues/348/events","html_url":"https://github.com/rails/sass-rails/issues/348","id":107027792,"number":348,"title":"@import foo.css when foo.scss is also present does not include the file","user":{"login":"ybart","id":223016,"avatar_url":"https://avatars.githubusercontent.com/u/223016?v=3","gravatar_id":"","url":"https://api.github.com/users/ybart","html_url":"https://github.com/ybart","followers_url":"https://api.github.com/users/ybart/followers","following_url":"https://api.github.com/users/ybart/following{/other_user}","gists_url":"https://api.github.com/users/ybart/gists{/gist_id}","starred_url":"https://api.github.com/users/ybart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybart/subscriptions","organizations_url":"https://api.github.com/users/ybart/orgs","repos_url":"https://api.github.com/users/ybart/repos","events_url":"https://api.github.com/users/ybart/events{/privacy}","received_events_url":"https://api.github.com/users/ybart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T16:58:47Z","updated_at":"2015-09-18T04:50:53Z","closed_at":"2015-09-18T04:50:52Z","body":"Given a assets folder with both `foo.css` and `foo.css` present. When I import the css file from an application.sass file using :\r\n\r\n```\r\n@import foo.css\r\n```\r\n\r\nIn production environment, the generated application.css file contains `@import url(foo.css)` instead of the contents of css file.\r\n\r\nHere is a sample project reproducing the issue : \r\n\r\nhttps://github.com/ybart/sass-css-import-bug/\r\n\r\nThe relevant commit highlighting the issue is : \r\n\r\nhttps://github.com/ybart/sass-css-import-bug/commit/9b9c1f93e2628a4b4b311fe786abd135d7a8e09f\r\n\r\nTo reproduce the issue, you need to to run the following commands :\r\n\r\n```\r\nrake assets:precompile RAILS_ENV=production\r\nRAILS_ENV=production rails s\r\n```\r\n\r\nThen access http://localhost:3000/ In the browser inspector, you can see that the browser is trying to load /toto.css whether the file contents should have be included. By observing application-xxx.css, we see an unexpected import directive."}}