I’m currently working on various improvements to my website on www.techmaxsolucoes.com.br
With Frappe we can add nodejs modules and reference those modules, during the asset build and that works so far, so great.
But, I have a situation that is being hard to me, because I didnt understand how the asset resolution works on the building process.
First of all I have the following structure
- /app/public/scss/theme/something.scss
- /app/public/scss/base/another.scss
- /app/public/scss/other/finally.scss
- /app/public/fonts/
- /app/public/svgs/
On my scss/theme/something.scss I have this import
@font-face {
font-family: 'Unicons';
src: url('../../fonts/unicons/Unicons.woff2') format('woff2'),
url('../../fonts/unicons/Unicons.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
I’m pretty sure, the relative path, points properly to the file I wanna, basedly on the actual position of the scss/theme/something.scss
but I still continue receiving errors during the build, telling me it failed to resolve the path to ../../fonts/unicons/Unicons.woff2
Does someone had to deal with this kind of problem before?