As I see from the docs, it is possible to add custom assets folders with any static content like images, fonts, etc.
bud.assets(['images', 'fonts'])
.
So, I should be able to create folder images-svg
and fonts
and than add them to bud.assets(['images', 'images-svg', 'fonts'])
and after yarn bud build
to have a file copy at @dist
.
But I have only images
folder from a list at @dist
. Also, I have tried with the same result:
bud.assets([
'images', 'images-svg',
{
from: bud.path('@src/fonts'),
to: bud.path('@dist/fonts'),
},
])
My config:
module.exports = async (app) => {
app
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app'],
editor: ['@scripts/editor', '@styles/editor'],
admin: ['@styles/admin'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets('images', 'fonts', 'images-svg')
/**
* 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://website.lndo.site')
/**
* Development URL to be used in the browser.
*/
.serve('http://0.0.0.0:3000');
};
Any errors during compilation.
"@roots/bud": "6.3.5",
"@roots/bud-preset-recommend": "6.3.5",
"@roots/bud-purgecss": "6.3.5",
"@roots/bud-sass": "6.3.5",
"@roots/sage": "6.3.5",
CC: @kellymears