coreui-icons icon indicating copy to clipboard operation
coreui-icons copied to clipboard

Should font paths be relative to package?

Open cballenar opened this issue 4 years ago • 1 comments

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:

https://github.com/coreui/coreui-icons/blob/b9bb76bdec67609bb5948ba6abcd6400413389da/scss/free/_variables.scss#L2

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,

cballenar avatar Oct 19 '20 23:10 cballenar

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

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

e-repo avatar Nov 11 '20 09:11 e-repo