Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Config Files #35

Open
julio-salas03 opened this issue Jan 19, 2024 · 1 comment
Open

Support Config Files #35

julio-salas03 opened this issue Jan 19, 2024 · 1 comment

Comments

@julio-salas03
Copy link

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.

@ADTC
Copy link

ADTC commented Nov 1, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants