Include ttf fonts in dist folder

I need to copy ttf font files to dist/fonts/ in order to build PDFs, but just woff and woff2 are copied when yarn build.

Is it possible to change this behavior?

Thank you!

1 Like

That seems like odd behavior. As far as I can tell, webpack should be copying over TTF files as well: https://github.com/roots/sage/blob/master/resources/assets/build/webpack.config.js#L105-L114 What do your source files look like?

1 Like

Yes, I have the same webpack.config.js with same content.

Ahhhh… just I need to declare the format in the CSS:

url('asap-bold-TTF.ttf') format('truetype');

:fist_right:t3::boom::persevere:

3 Likes