Skip to content

Best practice for CSS? #55

@AlecRust

Description

@AlecRust

I have a component structure like so:

- /app
  - /components
    - /alert
      - alert.css
      - alert.html.erb
      - alert.rb

I'm importing the CSS file in Webpacker's application.css.

Unfortunately this setup gives me the error:

More than one template found for Alert. There can only be one sidecar template file per component.

I'm currently working around this by using _alert.css instead of alert.css, but it seems odd actionview-component is treating this CSS file as a template file?

Is there a best practice here I should be following? Or is this an issue actionview-component should fix?

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