Skip to content

Commit

Permalink
fix: πŸ› Elder.js was processing stacks backwards, this fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Reese authored and Nick Reese committed Sep 9, 2020
1 parent d62bf5a commit 9c23f39
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 @@ -138,15 +138,15 @@ 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. Highest priority because css after it will overwrite the critical path css.`,
priority: 1,
priority: 100,
run: async ({ plugin, request, cssStack }) => {
if (!plugin.internal.disable) {
const critCss = plugin.internal.criticalPathCss[request.route];
if (critCss) {
cssStack.push({
source: 'hooksjs',
string: critCss,
priority: 1,
priority: 100,
});

return { cssStack };
Expand Down

0 comments on commit 9c23f39

Please sign in to comment.