Skip to content
Discussion options

You must be logged in to vote

Not sure if this was fixed I 2.6 or I just wasn't using it right before, but I'm now able to create a plugin:

function fixDataUrls() {
  return {
    name: 'fix-embedded',
    async beforeRender(context) {
      context.fontsCSS = context.fontsCSS.replace('application/octet-stream', 'font/woff2');
    },
  };
}
``` and changes made to the context stick.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jrjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant