Skip to content

Support Config Files #35

Open
Open

Description

@julio-salas03

I recently ran into this tool and it's totally awesome. However I wasn't able to use it since my classes are prefixed with tw-.

A good way to solve this could be allowing users to import their config file, so if they have a custom configuration the app can take it into account.

There are obviously some questions/difficulties, like plugins for example, but maybe supporting a basic config file with no plugins or imports could be a good way to start.

Activity

  1. ADTC commented on Nov 1, 2024

    @ADTC

    An interesting situation. I suppose the workaround right now is to manually find and remove all instances of the tw- prefix.

    I guess a function could be added to strip the prefix from the input before processing it, referencing how the prefix is used.

    It could involve a small text box in the top header to input your prefix. Then when you paste the classes with prefix, they will be stripped (internally in server) during processing, and also added back to the generated CSS.

    Is there any other reason to support config files besides the prefix situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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