question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

style tags are in reverse order

See original GitHub issue

When you use getStyleTags you get styles in wrong order. That means chunks are first and main css is last. This will cause bad css visualisation because order must be correct.

Here is temporary workaround

    const styleTags = appContext
      .getStyleTags()
      .split('\n')
      .reverse()
      .join('\n');

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Feb 14, 2019

We have to be sure to insert styles in the correct order. But we have to investigate what is the correct order first.

0reactions
theKasheycommented, Feb 28, 2019

Probably the best way is to inject stuff like normalize.css manually in a header template. I am almost sure, that you can’t get “right” CSS order from stats.json, and observing calls to style-loaders is not possible with stream rendering. Personally, I’ve solved it using used-styles, but normalize.css is not used. And “use-order” does not reflect “import-order”. So, yet again, the best way is to solve the problem by hand - place normalize.css where it should be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reverse Element Order with CSS Flexbox - David Walsh Blog
CSS Flexbox code to display and show HTML elements backwards.
Read more >
HTML ol reversed Attribute - W3Schools
The reversed attribute is a boolean attribute. When present, it specifies that the list order should be descending (9,8,7...), instead of ascending (1,...
Read more >
How to display a reverse-ordered list in HTML? - Stack Overflow
Show activity on this post. You can use flexbox to achieve this. It allows you to reverse the order with the flex-direction property....
Read more >
Reverse the Order of HTML Elements using CSS3 Flexbox
I'll use row-reverse when I want to show reverse order horizontally. Now remember, it does not reverse the order based on numbers or...
Read more >
HTML ol reversed Attribute - GeeksforGeeks
The HTML <ol> reversed Attribute is a Boolean Attribute and used to ordered the list in Descending Order(9, 8, 7, 6 …
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found