Skip to content

Tailwind Classes not compiled using ViewComponents #201

@sergitejada

Description

@sergitejada

I have been testing ViewComponts and I found this ViewComponts + Tailiwnd guide.

Example
The guide uses a CDN to use tailwind and everything works fine.

My problem is that using tailwindcss-rails the tailwind classes that are injected from a component are not rendered in the view.

I start server from Procfile
image

My tailwind.config:
image

My component:
image

Component view:
image

image

Error:
image

Classes are loaded in Html but not in css

I know where the error is but I can't find a solution without having to use a tailwind CDN.

PD: I have also used rails assets:clobber

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