Now, I do not get an error for other asset files that I include directly from node_modules in my css. Something like src: url('fontsource-roboto/files/roboto-latin-400-normal.woff2') format('woff2') is bundled just fine.
I presume this is occurring because all relative paths are being resolved from '.' and not /node_modules/@mdi/font.
I am including @mdi/fonts (installed from npm) like so:
This file contains the following
@font-face
declarationI get the following error when bundling:
Now, I do not get an error for other asset files that I include directly from
node_modules
in my css. Something likesrc: url('fontsource-roboto/files/roboto-latin-400-normal.woff2') format('woff2')
is bundled just fine.I presume this is occurring because all relative paths are being resolved from
'.'
and not/node_modules/@mdi/font
.