-
Notifications
You must be signed in to change notification settings - Fork 49
import style.css/scss in App.js? #66
Comments
Are you using Razzle? I haven't tried this personally (I use css-in-js) but I don't see why it wouldn't work since razzle does support this does it not work when you try it? |
ahh yea there needs to be to a way to inject the assets tags e.g.
something like this will need to be added |
yeah doing it via getInitialProps is a good temporary workaround hmm is it undefined in production? just check if it exists first before setting it also just remembered loadable-components (for code splitting) only supports css-in-js (gregberge/loadable-components#94), so now that Rogue is independent of build setup we might have to also support another library for doing this |
thanks |
So to confirm, adding headTag works? |
yes its work, the file css is loaded in prod , undfined in dev. but why this way does not work |
opened another issue to remind myself to implement it soon |
can i import style.css/scss in App.js file?
The text was updated successfully, but these errors were encountered: