ExLibrisGroup/primo-explore-devenv

add fonts folder to zip package

Opened this issue · 0 comments

Hi,

this is a small patch to create-package task which adds fonts/ to zip files, please add it.

upload to Primo backoffice and access from NUI Frontend works, it seems fonts/ and different variants (.eot, .otf, .svg, .ttf, woff) are accepted.

diff --git a/gulp/tasks/createPackage.js b/gulp/tasks/createPackage.js
index de72ff8..480e847 100644
--- a/gulp/tasks/createPackage.js
+++ b/gulp/tasks/createPackage.js
@@ -61,7 +61,7 @@ gulp.task('create-package', ['select-view', 'custom-js','custom-scss','custom-cs
     console.log(' in  : /packages');
     console.log('\r\n');
     console.log('............................................................................................................................................');
-    return gulp.src(['./primo-explore/custom/'+code,'./primo-explore/custom/'+code+'/html/**','./primo-explore/custom/'+code+'/img/**','./primo-explore/custom/'+code+'/css/custom1.css','./primo-explore/custom/'+code+'/js/custom.js'], {base: './primo-explore/custom'})
+    return gulp.src(['./primo-explore/custom/'+code,'./primo-explore/custom/'+code+'/fonts/**','./primo-explore/custom/'+code+'/html/**','./primo-explore/custom/'+code+'/img/**','./primo-explore/custom/'+code+'/css/custom1.css','./primo-explore/custom/'+code+'/js/custom.js'], {base: './primo-explore/custom'})
         .pipe(zip(code+'.zip'))
         .pipe(gulp.dest('./packages/'));
 });