Skip to content

Allow to load css from the project it self #18

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

Open
felixmosh opened this issue Jan 26, 2021 · 1 comment
Open

Allow to load css from the project it self #18

felixmosh opened this issue Jan 26, 2021 · 1 comment

Comments

@felixmosh
Copy link
Contributor

felixmosh commented Jan 26, 2021

First of all thank you for this awesome lib! 🙏🏼

Currently, the css is bundled with js, and injected at runtime with some magic injectStyles function.

In my project I want to process all the css with my custom loaders (postcss rtl, autoprefixer, etc), is it possible to allow importing the styles as a separate import, similar to what react-toastify allows (it's just adds the css file to the build folder)

@thmsgbrt
Copy link
Owner

Hi @felixmosh thank you!

That sounds like a good idea!

I'll give it a look when I have a bit of time, unless you would like to submit a PR?

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