Roots Discourse

Directory of fonts not compiling to dist

webpack
#1

Using node v9.11.1 and npm version 6.1.0 with a fresh install of latest Sage, I have a fonts directory in a containing a few font files:

resources/assets/fonts/
├── forum-v9-latin-regular.woff
├── forum-v9-latin-regular.woff2
├── pt-sans-v10-latin-regular.woff
├── pt-sans-v10-latin-regular.woff2
├── PT_Serif-Web-Bold.ttf
├── PT_Serif-Web-BoldItalic.ttf
├── PT_Serif-Web-Italic.ttf
└── PT_Serif-Web-Regular.ttf

Have removed the dist directory in troubleshooting and run yarn build, numerous times.

The dist directory only receives image, style and script directories.

The Sage Docs don’t seem to mention fonts directly.

What have I done wrong?

0 Likes

#2

Found it. I had the wrong "publicPath": "/app/themes/sage" in the resources/assets/config.json file.

I’m not sure why it was allowing images, styles and scripts to compile but not fonts.

But apparently it was.

0 Likes