Answer the question
In order to leave comments, you need to log in
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',
]);
- app
|__ bower
|__ font-awesome
|__ fonts
....
- dist
|__ fonts
gulpfile.js
bower.json
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question