blendid icon indicating copy to clipboard operation
blendid copied to clipboard

Fonts aren't copied over on build

Open henrikholmlund opened this issue 7 years ago • 1 comments

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.

henrikholmlund avatar Dec 04 '18 14:12 henrikholmlund

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 avatar May 28 '19 19:05 olets