#How to Not Make Bun Bundle Fonts

1 messages · Page 1 of 1 (latest)

royal aspen
#

I am trying to make bun Bun not bundle fonts but to no avail.
I have @font-face declarations with url to relative paths, but I don't want to bundle them inside my CSS file.
Any way to disable this?

stray obsidian
#

I made *.woff2 external lol

#

Does mean i have to manually have that file as hosted tho

royal aspen
#

I tried that, but it didn't work

#
cmd = Bun.spawn(
  [
    "bun",
    "build",
    "./nav/shared/index.css",
    ...cssFyl,
    ...jsFyl,
    "--outdir=./dploy",
    "--target=browser",
    "--format=iife",
    "--minify",
    "--splitting",
    "--sourcemap=none",
    "--entry-naming=[dir]/[name].[ext]",
    "--asset-naming=[dir]/[name].[ext]",
    "--root=./nav",
    "--drop=debugger",
    "--pure=console.info",
    "--pure=console.debug",
    "--pure=console.warn",
    "--pure=window.alert",
    "--css-chunking",
    "--external \"*.woff2\""
  ]```
stray obsidian
#

i dont think you need the quotations here, and it prob should still have =

#

and maybe your using normal woff

royal aspen
#

Hmm

royal aspen