Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fonts folder to zip package #104

Open
uleodolter opened this issue May 28, 2019 · 0 comments
Open

add fonts folder to zip package #104

uleodolter opened this issue May 28, 2019 · 0 comments

Comments

@uleodolter
Copy link
Contributor

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/'));
 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant