Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Fonts aren't copied over on build #567

Open
henrikholmlund opened this issue Dec 4, 2018 · 1 comment
Open

Fonts aren't copied over on build #567

henrikholmlund opened this issue Dec 4, 2018 · 1 comment
Assignees

Comments

@henrikholmlund
Copy link

henrikholmlund commented Dec 4, 2018

So I have this pretty much out of the box config file. Everything else works when I build but not the fonts task. Not even a folder is created.

module.exports = {
  html: true,
  images: true,
  fonts: true,
  static: true,
  svgSprite: true,
  ghPages: true,
  stylesheets: true,

  javascripts: {
    entry: {
      // files paths are relative to
      // javascripts.dest in path-config.json
      app: ['./app.js']
    }
  },

  browserSync: {
    server: {
      // should match `dest` in
      // path-config.json
      baseDir: 'public'
    }
  },

  production: {
    rev: false
  }
};

Any ideas on how to fix this? It's kind of annoying to have to copy over the fonts all the time.

@olets
Copy link
Contributor

olets commented May 28, 2019

Hi @henrikholmlund! So sorry you had to wait so long for an answer!!

Your task-config looks fine. What fonts path are you using in path-config?

If your fonts source folder is <src>/fonts and your fonts destination folder is <dest>/fonts, the "fonts" paths will be

"fonts": {
    "src": "fonts",
    "dest": "fonts"
}

Let us know if that helps

@olets olets self-assigned this May 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants