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

Should font paths be relative to package? #30

Open
cballenar opened this issue Oct 19, 2020 · 1 comment
Open

Should font paths be relative to package? #30

cballenar opened this issue Oct 19, 2020 · 1 comment

Comments

@cballenar
Copy link

Description:
I recently pulled coreui and coreui icons to a Laravel setup and when attempting to run npm build, NPM was not able to trace the .eot file to the right location because it was using ../ as seen in:

$coreui-icons-font-path: "../fonts" !default;

Experiment:
I tested replacing ../ with ~@coreui/icons/ and this did the trick. NPM was able to build the proper files and I'm now able to load the icons in the page.

Could/Should this be corrected in font related files or should I be working with these packages differently? 🧐

Thanks,

@e-repo
Copy link

e-repo commented Nov 11, 2020

I faced the same problem! Perhaps assign variable $coreui-icons-font-path to a another value

$coreui-icons-font-path: "../../fonts" !default;

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

2 participants