Skip to content

Add critical css - #94

Open
vladcalin-edw wants to merge 4 commits into
developfrom
add-critical-css
Open

Add critical css#94
vladcalin-edw wants to merge 4 commits into
developfrom
add-critical-css

Conversation

@vladcalin-edw

@vladcalin-edw vladcalin-edw commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Added critical css to the Dockerfile build

Task: https://taskman.eionet.europa.eu/issues/288613

@vladcalin-edw
vladcalin-edw changed the base branch from master to develop July 9, 2025 14:20
@vladcalin-edw
vladcalin-edw marked this pull request as ready for review July 9, 2025 14:22
@vladcalin-edw

vladcalin-edw commented Jul 9, 2025

Copy link
Copy Markdown
Contributor Author

I'm not sure how a build flow should look like since critical.css is generated from a running build, yet it's needed for the build in a production environment. That means 2 builds are required to update the critical.css

Current workflow steps:

  1. Build project
  2. Generate critical.css to /public folder /public/critical.css
  3. Build again to load /public/critical.css

Update: The critical css is now generated and added during build time of Dockerfile

@nileshgulia1 nileshgulia1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can push alteast what's considered to be critical, eg, homepage CSS, the header, navigation, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants