Skip to content

Commit

Permalink
fix: cache the preflight instead of requesting every rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
pearofducks authored Jun 29, 2023
1 parent b062058 commit 83537ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_preflights/resets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const reset = (await fetch('https://assets.finn.no/pkg/@warp-ds/css/v1/resets.min.css')).text();

export const resets = {
layer: 'preflights',
getCSS: async () => (await fetch('https://assets.finn.no/pkg/@warp-ds/css/v1/resets.min.css')).text(),
getCSS: () => reset,
};

0 comments on commit 83537ca

Please sign in to comment.