I'm attempting to access a woff file from a npm package called 'extras', but it seems like the URL prefixes the string with './'. When I remove the url() and just try the string/parameter, it still doesn't work.
Should I navigate through node_modules?
file.css
@font-face {
font-family: 'Font';
src: url('@extras/public/assets/icons/fonts/font.woff') format('woff');
}
Below is a working solution, but is it considered bad practice to reference node_modules?
@font-face {
font-family: 'Font';
src: url('/node_modules/@extras/public/assets/icons/fonts/font.woff') format('woff');
}