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

[Bug]: Gulp does not properly copy fonts for some reason. #3987

Closed
1 task done
SpookedByRoaches opened this issue May 6, 2024 · 6 comments
Closed
1 task done

[Bug]: Gulp does not properly copy fonts for some reason. #3987

SpookedByRoaches opened this issue May 6, 2024 · 6 comments
Assignees
Labels
bug CodeIgniter4 Issue relates to the conversion to CodeIgniter 4
Milestone

Comments

@SpookedByRoaches
Copy link

Bug Description?

In the past week or so, the gulp task that is supposed to copy the fonts from the bootswatch dist directory in node_modules, copies a wrong file or does something else I don't know. After running npm run build everything is ok except the fonts and I don't know why. The other files seem to be OK. The diff command is supposed to show that the files are different and even the sizes are wildly different.

$ diff public/resources/bootswatch/superhero/bootstrap.min.css ./node_modules/bootswatch/superhero/bootstrap.min.css
$ diff node_modules/bootswatch/fonts/glyphicons-halflings-regular.woff ./public/resources/bootswatch/fonts/glyphicons-halflings-regular.woff
Binary files node_modules/bootswatch/fonts/glyphicons-halflings-regular.woff and ./public/resources/bootswatch/fonts/glyphicons-halflings-regular.woff differ

The resulting files are binary garbage and aren't even fonts. They make the browsers throw errors regarding the decoding of the fonts.

Steps to Reproduce?

run npm run build

Expected Behavior?

The files should be exactly the same

OpensourcePOS Version

development (unreleased)

Php version

Php 8.4

What browsers are you seeing the problem on?

Firefox, Chrome

Server Operating System and version

Linux: 6.8.7-zen1-2-zen

Database Management System and version

mariadb 11.3.2

Web Server and version

apache 2.4.59-1

System Information Report (optional)

System Information Report

Unmodified copy of OpensourcePOS

  • I agree this copy has not been modified
@jekkos jekkos added the CodeIgniter4 Issue relates to the conversion to CodeIgniter 4 label May 7, 2024
@jekkos jekkos added this to the 3.4.0 milestone May 7, 2024
@objecttothis
Copy link
Member

@jekkos I suspect when you bumped dependencies to get jspdf and other stuff working it may have had this effect. Do you want to investigate this? If not, that's OK, but I think you might have more experience with the build stuff than I do.

@objecttothis
Copy link
Member

@SpookedByRoaches
Copy link
Author

You're right @objecttothis when I revert back to commit e870697, it's fine. But when going to the 42a54bb commit it copies wrong again. Although I can't say why it does that.

@jekkos jekkos self-assigned this May 7, 2024
@jekkos
Copy link
Member

jekkos commented May 7, 2024

Indeed wel spotted @SpookedByRoaches, I might have removed something by accident. Gulp was giving me some errors on non-existant folders, which led me to remove the offending copy.

@jekkos
Copy link
Member

jekkos commented May 9, 2024

This issue is due to the gulp bump to 5.0. Will apply the fix mentioned there.

jekkos added a commit that referenced this issue May 9, 2024
@jekkos
Copy link
Member

jekkos commented May 9, 2024

Fixed now in ci4-branch.

@jekkos jekkos closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CodeIgniter4 Issue relates to the conversion to CodeIgniter 4
Projects
None yet
Development

No branches or pull requests

3 participants