Skip to content

Unable to use CSS files that are more than one level deep in the assets folder #24

Description

@joshuabremerdexcom

We have a CSS file in the public directory at the following path:

assets/font-awesome/css/font-awesome.css

In the index file it's referenced as:

<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css" />

This was failing because of the new code here that eagerly grabs all the CSS files:

https://github.com/seanpdoyle/ember-cli-rails-assets/blob/8c42df5bb4679dd2ca23c70b9b2153399b2e8da3/lib/ember_cli/assets/asset_map.rb#L25-L28

However, when it gets here, it fails, because the file isn't in the asset map. The DirectoryAssetMap right now only looks at children and not the full tree.

https://github.com/seanpdoyle/ember-cli-rails-assets/blob/master/lib/ember_cli/assets/asset_map.rb#L36

I submitted a PR here: #23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions