You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like it's trying to resolve it, giving an error: "No loader is defined for .ttf files" Obviously, I do not want to load those files into the bundle, but rather pass the url statement to the output CSS. Is there a way to make this work? Thanks!
The text was updated successfully, but these errors were encountered:
Hello @mckravchyk
Sorry for late reply, but hope this will help.
Esbuild try to resolve many thing import from input entry. In you case, to resolve you can follow document from esbuild.
eg:
import{build}from'esbuild';build({// You options hereloader: {'.ttf': 'copy'// This loader will copy the file to the output directory and rewrite the import path to point to the copied file. // You should read the document to get more loader options.}});
I have a font-face definition
It looks like it's trying to resolve it, giving an error: "No loader is defined for .ttf files" Obviously, I do not want to load those files into the bundle, but rather pass the url statement to the output CSS. Is there a way to make this work? Thanks!
The text was updated successfully, but these errors were encountered: