H
H
HamSter2016-07-09 17:07:37
Building projects
HamSter, 2016-07-09 17:07:37

Font-awesome fonts not being copied from bower to dist folder?

gulpfile.js:

'use strict';
 
var gulp          = require('gulp'),
  ... ;

// Пути
var path = {
  app : {          // Исходники
    ...
    fonts  : 'app/bower/font-awesome/fonts/**/*.*'		
  },
  dist : {         // Релиз
    ...
    fonts  : 'dist/fonts/'
  },
  watch : {        // Наблюдение
          ...
    fonts  : 'app/bower/font-awesome/fonts/**/*.*'		
  }
};

//Работа с FONTS 
gulp.task('fonts', function(){
  return gulp.src(path.app.fonts)
    .pipe(gulp.dest(path.dist.fonts));
});

// Наблюдение
gulp.task('watch', function () {	
  ...
  gulp.watch(path.watch.fontsAw, ['fonts']);
});

// Задачи по-умолчанию
gulp.task('default', [	
        ...
  'fonts',	
]);

Structure:
- app
     |__ bower
          |__ font-awesome
                |__ fonts
          .... 
- dist
      |__ fonts

gulpfile.js
bower.json 
...

Question:
Why are fonts from bower/font-awesome/fonts not copied to dist/fonts ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2016-07-09
@HamSter007

for example, I include font-awesome in a direct way font-awesome and everything works fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question