Skip to content

Add app/javascript as default compressor folder to make a lookup #79

Closed
@andresgutgon

Description

@andresgutgon

What?

Hi, first of all thanks for the work done here!

I was playing with importmaps and this gem to feel how is not to have any build step : ). Looks really nice. To try I made a dummy Rails app and when I deployed I was missing in Tailwind purged CSS a couple of classes.

I realized that's because app/javascript folder is not taken into consideration when doing the purging.

Is explained in the README how to add that folder and I did and it works
image

But I was wondering if it doesn't makes sense to include Javascript as default place to be purged. I'm all in in the Less javascript is better : ) But still I think is really rare if at some point you're not going to do some javascript and add/remove some CSS class.

Sorry if this is not that the right place to discuss this.
My thought was that this error can be hard to find for people without experience and adding app/javascript can make their life easier

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