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!
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!
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?
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');