Skip to content

Prerendered routes' css is not inlined #799

@hesselbom

Description

@hesselbom

Do you want to request a feature or report a bug?
I believe it's a bug.

What is the current behaviour?
When building it doesn't inline css for prerendered routes, causing the site to look broken before js is loaded or if js is disabled by the user since the prerendered html's css is not loaded or inlined.

If the current behaviour is a bug, please provide the steps to reproduce.
Here's a gist of the files required to reproduce:
https://gist.github.com/hesselbom/4a3dc03acae33c14a3bc2530f6d6b821

What is the expected behaviour?
Since the html for the route is prerendered I'd expect the related css for that view to be considered critical and be inlined.

Please mention other relevant information.

  • Node version: v10.13.0
  • npm version: 6.9.0
  • Operating system: Mac OSX 10.14.4
  • CLI version: 3.0.0-rc.1
  • Browser: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions