mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 04:44:31 +01:00 
			
		
		
		
	feat: self-hosting existing google fonts (#8540)
This commit is contained in:
		@@ -130,15 +130,6 @@
 | 
			
		||||
    </script>
 | 
			
		||||
    <% } %>
 | 
			
		||||
 | 
			
		||||
    <!-- For Nunito only preload the latin range, which should be good enough for now -->
 | 
			
		||||
    <link
 | 
			
		||||
      rel="preload"
 | 
			
		||||
      href="https://fonts.gstatic.com/s/nunito/v26/XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2"
 | 
			
		||||
      as="font"
 | 
			
		||||
      type="font/woff2"
 | 
			
		||||
      crossorigin="anonymous"
 | 
			
		||||
    />
 | 
			
		||||
 | 
			
		||||
    <!-- Register Assistant as the UI font, before the scene inits -->
 | 
			
		||||
    <link
 | 
			
		||||
      rel="stylesheet"
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,8 @@ export default defineConfig({
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
    sourcemap: true,
 | 
			
		||||
    // don't auto-inline small assets (i.e. fonts hosted on CDN)
 | 
			
		||||
    assetsInlineLimit: 0,
 | 
			
		||||
  },
 | 
			
		||||
  plugins: [
 | 
			
		||||
    woff2BrowserPlugin(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user