{"action":"created","issue":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/51","labels_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/51/comments","events_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/51/events","html_url":"https://github.com/rwz/ember-cli-rails/issues/51","id":53622260,"number":51,"title":"Ember-cli-rails compiles wrong asset files","user":{"login":"andruby","id":10639,"avatar_url":"https://avatars.githubusercontent.com/u/10639?v=3","gravatar_id":"","url":"https://api.github.com/users/andruby","html_url":"https://github.com/andruby","followers_url":"https://api.github.com/users/andruby/followers","following_url":"https://api.github.com/users/andruby/following{/other_user}","gists_url":"https://api.github.com/users/andruby/gists{/gist_id}","starred_url":"https://api.github.com/users/andruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andruby/subscriptions","organizations_url":"https://api.github.com/users/andruby/orgs","repos_url":"https://api.github.com/users/andruby/repos","events_url":"https://api.github.com/users/andruby/events{/privacy}","received_events_url":"https://api.github.com/users/andruby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-07T11:19:17Z","updated_at":"2015-01-07T12:49:03Z","closed_at":null,"body":"I've spent hours figuring out why my \"rake assets:precompile\" suddenly started failing :)\r\n\r\n[/lib/ember-cli/app.rb:142](https://github.com/rwz/ember-cli-rails/blob/b698902ac293340d408a7a5d404686adcbf5efb7/lib/ember-cli/app.rb#L142) seems to be the root cause: \r\n```ruby\r\nRails.configuration.assets.precompile << /(?:\\/|\\A)#{name}\\//\r\n```\r\n\r\nThis adds **all folders with the same name as the app** to the precompile list. I happened to have a css folder with the same name as an ember-cli app. This caused a compilation error because the css files in that folder depend on sass variables defined elsewhere (which are normally imported upfront when compiling the usual application.css file).\r\n\r\nCan we change the line in question so that it only adds the specific ember-cli asset folders?\r\n"},"comment":{"url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/comments/69017300","html_url":"https://github.com/rwz/ember-cli-rails/issues/51#issuecomment-69017300","issue_url":"https://api.github.com/repos/rwz/ember-cli-rails/issues/51","id":69017300,"user":{"login":"andruby","id":10639,"avatar_url":"https://avatars.githubusercontent.com/u/10639?v=3","gravatar_id":"","url":"https://api.github.com/users/andruby","html_url":"https://github.com/andruby","followers_url":"https://api.github.com/users/andruby/followers","following_url":"https://api.github.com/users/andruby/following{/other_user}","gists_url":"https://api.github.com/users/andruby/gists{/gist_id}","starred_url":"https://api.github.com/users/andruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andruby/subscriptions","organizations_url":"https://api.github.com/users/andruby/orgs","repos_url":"https://api.github.com/users/andruby/repos","events_url":"https://api.github.com/users/andruby/events{/privacy}","received_events_url":"https://api.github.com/users/andruby/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T12:49:03Z","updated_at":"2015-01-07T12:49:03Z","body":"I've alleviated my specific problem with [this commit](https://github.com/andruby/ember-cli-rails/commit/fe4e0aef0154ff38da5bcbbe113c14b368f822af). It adds :appname/ to the precompile list, not */:appname/. With that commit users can create asset subfolders with the :appname, but not asset \"root\" folders with the :appname.\r\n\r\nCan we explicitly add files to the precompile list instead of directories?  So far I've noticed that these files are precompiled:\r\n* :app/vendor.(js|css|map)\r\n* :app/:app.(js|css|map)\r\n* :app/failed.png\r\n* :app/passed.png\r\n* :app/test-loader.js\r\n* :app/test-support.(css|js|map)"}}