Skip to content

Asset subdirectories should compile to local path #54

Description

@cbornhoft

Maybe I'm misunderstanding how this works but i'll see if I can explain first.

The default location for assets is <app-name>/public/assets, which then copy to <app-name>/dist/assets upon building. The problem lies in setting the default directories for any assets within ember-cli-compass-compiler.

Compass sets the font directory to /fonts by default. This causes warnings upon every build: WARNING: 'font.ttf' was not found in <app-name>/fonts but the fonts are found and work as expected in the browser.

To remove these warnings, I set the --fonts-dir option to public/assets/fonts. But compiling doesn't remove the public/assets portion, so naturally the browser can't find the font in <app-name>/dist/assets/public/assets/fonts.

Proposal: To me the default for ember-cli-compass-compiler should be public/assets/fonts which then compiles to fonts, since <app-name>.css already sits in the assets directory. This would remove the warnings and work as expected. Either that or like I said, I'm misunderstanding how to set the defaults properly.

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