-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with serving static files #326
Comments
Is this from the dev server or production? If you are intending to use the file loader I recommend referencing the files like the image example on the FAQ page. |
it is from the dev server, and, can I reference files like this within an scss file ? |
Yes, if I understand what you are asking.
Can you describe the use case so maybe we can be more helpful?
ᐧ
…On 24 November 2016 at 22:59, Patrick Johnson ***@***.***> wrote:
it is from the dev server, and, can I reference files like this within an
scss file ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#326 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ3eFpycx80volF8xdJUE1JCQCsLSzmVks5rBl0pgaJpZM4K47_P>
.
|
Alright, sorry for the delay, if I reference a font like this in my sass:
it will not work at first, it shows no font's loading, i get no errors in webpack or in the console. Then i can modify the file to anything, save, and modify it back to exactly this, save and it hotloads, and the font loads...this makes no sense why it is not loading initially. it also seems that setting this makes it work:
|
Weird. That worked for me. Maybe it's something with your specific
hot-reloading config? Have you changed it from the one on the repo?
ᐧ
…On 1 December 2016 at 01:28, Patrick Johnson ***@***.***> wrote:
Alright, sorry for the delay, if I reference a font like this in my sass:
@font-face { font-family: 'proxima-reg'; src: url('../fonts/proxima_nova_alt_regular-webfont.woff2')
format('woff2'), url('../fonts/proxima_nova_alt_regular-webfont.woff')
format('woff'); font-weight: normal; font-style: normal; }
it will not work at first, it shows no font's loading, i get no errors in
webpack or in the console. Then i can modify the file to anything, save,
and modify it back to exactly this, save and it hotloads, and the font
loads...this makes no sense why it is not loading initially.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#326 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ3eFnGhYsskP75q0_QcAJR2zypsshzLks5rDmkTgaJpZM4K47_P>
.
|
I put in #207 which dynamically set the If I read your last comment it appears you got it working. If not feel free to re-open. |
Node version: 6.9.1
npm version: 3.10.8
Operating system: Ubuntu 16.10 AMD64
Steps to reproduce: When serving fonts via the file loaders in src/fonts, they are available to download, and if set with an absolute http url (eg: http://localhost:3030/fonts/fontname.woff in sass they are correctly read, but if I set with an absolute base url(eg: /fonts/fontname.woff) it will not load properly. I am wondering if this is an issue or there are special steps for including fonts in sass files for defining custom font-faces.
The text was updated successfully, but these errors were encountered: