ssr css ordering reversed when using splitChunks initial #30846
Unanswered
cameronbraid
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
css chunks are not being rendered in the order the are
import
ed when I configure webpack to split the chunks (and have a layout css that is large enough to make a separate chunk : I use a === padded base64 background image to make the layout css big)Prior to making this change the
layout
styles were inlined before theindex
styles which is what I would expect (that's the import order)e.g.
However after making the above split chunks change the html is rendered with the
index
page styles beforelayout
:Steps to reproduce
https://codesandbox.io/s/objective-fog-8z5dh
Run
open the
index.html
file that will appear in the file browser after a few seconds and run format document (also turn off wrapping since there is a lot of === in there)Steps to reproduce the correct css
Comment out
onCreateWebpackConfig
in gatsby-node.js and re-do the above buildBeta Was this translation helpful? Give feedback.
All reactions