Skip to content

Error: Can't find stylesheet to import #6

Closed
@sedubois

Description

@sedubois

Thanks a lot for this new gem which I'm trying to replace sassc-rails in our project (and some day we might manage to migrate away from sass entirely, who knows).

We import some old foundation stylesheets like so: @import "foundation/functions". With sassc-rails this correctly finds the file in the foundation gem under vendor/assets/stylesheets/foundation/_functions.scss, but when using dartsass-rails and running rails dartsass:install or rails dartsass:build it yields Error: Can't find stylesheet to import. The build error can be "solved" by copying the stylesheet from the gem into the app under app/assets/stylesheets/foundation/_functions.scss.

Should vendor/assets/stylesheets be added to CSS_LOAD_PATH in lib/tasks/build.rake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions