How to create a task
to copy the bootstrap font folder to the build folder? I created the following task but it is not working.
var config = {
assets_path: './resources/assets',
build_path: './public/build'
};
config.bower_path = config.assets_path + '/../bower_components';
config.build_path_js = config.build_path + '/js';
config.build_vendor_path_js = config.build_path_js + '/vendor';
config.build_path_html = config.build_path + '/views';
config.build_path_fonts = config.build_path + '/fonts';
config.build_path_images = config.build_path + '/images';
gulp.task('copy-fonts', function() {
gulp.src(config.bower_path + '/bootstrap/dist/fonts/**/*')
.pipe(gulp.dest(config.build_path_fonts));
});
It does not show any errors, but the task is not executed, because the fonts folder is not created in the build.