Hi there!
Can't find a css for static pages, after gatsby build.
This behavior I see only if I reload all existing pages in a browser, but if I'm roaming through site links -
css is working.
Also, css works in the dev mode
There are no errors in console, no errors while building, just as the result - broken css and from time to time they looks different.
1.9.2438.9.410.13.2gatsby-config.js:
+ `gatsby-plugin-jss`,
Would be thankful if you can help me!
I believe you have the same error as I encountered in #4183
Do check out the issue and take the required steps in adding the styling in html.js for production
@KyleAMathews Don't you think it would be a good idea mentioning this somewhere in the documentation? Because devs usually just check how good everything works using gatsby develop and then gatsby build seems to break everything just like that.
If you use the default html.js (which we strongly encourage you to) then this happens by default.
@ponchique Is your issue resolved?
Yes, I resolved it by rewriting all css using sass. I thought the problem was in jss.
Most helpful comment
@KyleAMathews Don't you think it would be a good idea mentioning this somewhere in the documentation? Because devs usually just check how good everything works using
gatsby developand thengatsby buildseems to break everything just like that.