src: url('@fonts/FontFile.woff2') failed for me with error "Module not found: Error: Can't resolve './@fonts/FontFile.woff2' in 'resources/styles'". Per this forum post, I found prefixing with ~, which worked for me.
I should say, I am working with .scss files, not .css as this document references ("Define your @font-face in styles/common/fonts.css:") and I have not tested ~@fonts with a .css file. But I wanted to propose this change nonetheless.
src: url('@fonts/FontFile.woff2')
failed for me with error "Module not found: Error: Can't resolve './@fonts/FontFile.woff2' in 'resources/styles'". Per this forum post, I found prefixing with~
, which worked for me.I should say, I am working with
.scss
files, not.css
as this document references ("Define your @font-face in styles/common/fonts.css:") and I have not tested~@fonts
with a.css
file. But I wanted to propose this change nonetheless.Thanks!