Hello,
I am trying to do something really simple and it’s becoming a very frustrating task.
I am using Sage10 with Bud 6.0.0 (you can see package.json deps below)
"devDependencies": {
"@roots/bud": "6.0.0",
"@roots/bud-eslint": "^6.0.0",
"@roots/bud-postcss": "^6.0.0",
"@roots/bud-prettier": "^6.0.0",
"@roots/bud-stylelint": "^6.0.0",
"@roots/bud-tailwindcss": "6.0.0",
"@roots/bud-typescript": "^6.0.0",
"@roots/eslint-config": "^6.0.0",
"@roots/sage": "6.0.0",
"@types/wordpress__blocks": "^11.0.1",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@wordpress/blocks": "^11.10.0"
}
When I try to import the fonts normally, using the @font-face i get errors as the fonts are not found. I saw similar issues which say it was solved with buds 5 but I am using version 6 and the issue persist.
The structure is quite simple. It’s worth nothing I am using postcss.
Bud config below
export default async (bud) => {
bud.typescript.typecheck.enable();
bud
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app.ts', '@styles/app'],
editor: ['@scripts/editor.ts', '@styles/editor'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets(['images', 'fonts'])
/**
* These files will trigger a full page reload
* when modified.
*/
.watch('resources/views/**/*', 'app/**/*')
/**
* Target URL to be proxied by the dev server.
*
* This should be the URL you use to visit your local development server.
*/
.proxy('http://localhost:8000')
/**
* Development URL to be used in the browser.
*/
.serve('http://0.0.0.0:3000');
};
Can somebody please point me to the right direction?
Thanks