vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 682 forks source link

Fonts aren't copied over on build #567

Open henrikholmlund opened 5 years ago

henrikholmlund commented 5 years ago

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 commented 5 years ago

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