Skip to content

document css file loading #195

Description

@martindemello

It took me a good bit of googling and trial and error to discover that if I installed primer-css via npm, the way to get it into my rails app was by adding

import '@primer/css/dist/primer.css'

in app/frontend/entrypoints/application.js (rather than e.g. in application.css or via a stylesheet tag in my erb file)

An overview page on the various ways to install and include third-party css libraries into a vite/rails setup would have been very helpful.

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