Skip to content

Commit

Permalink
fix: πŸ› Fix css specificity issue with adding critical path css
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreese committed Aug 11, 2020
1 parent 1e7d979 commit a852aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/critical-path-css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ const plugin = {
{
hook: 'stacks',
name: 'addCriticalPathCssToCssStack',
description: `If a route has a critical path css file it adds it to the cssStack so it is included.`,
priority: 100,
description: `If a route has a critical path css file it adds it to the cssStack so it is included. Highest priority because css after it will overwrite the critical path css.`,
priority: 1,
run: async ({ plugin, request, cssStack }) => {
if (!plugin.internal.disable) {
const critCss = plugin.internal.criticalPathCss[request.route];
Expand Down

0 comments on commit a852aa7

Please sign in to comment.