Skip to content

Commit

Permalink
tinker a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawatermelo committed Oct 29, 2024
1 parent 651565c commit b1d8ca8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ const plugin: Plugin = {

headerOutput += headers
.map((v) => {
let header = `<${v.path}>; rel=preload; as=${v.as}`;
// if (v.as === 'style') {
header += '; crossorigin=anonymous';
// }
let header = `<${v.path}>; rel="preload"; as="${v.as}"; nopush`;
if (v.as === 'font') {
header += '; crossorigin="anonymous"';
}
return header;
})
.join(',');
Expand Down

0 comments on commit b1d8ca8

Please sign in to comment.