thmsgbrt / react-simple-pull-to-refresh

npm install react-simple-pull-to-refresh
https://www.npmjs.com/package/react-simple-pull-to-refresh
MIT License
170 stars 40 forks source link

Allow to load css from the project it self #18

Open felixmosh opened 3 years ago

felixmosh commented 3 years ago

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 commented 3 years ago

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?