You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.
Problem! I try to adding font to my project ,this is my environment and step for adding font but i still can't use font and not found font file in asset while run webpack --config webpack.config.vendor.js
This is my environment
-use visual studio 2017
-use webpack v2.5.0
-use node v5.12.0
-use node-sass : "^4.5.0"
-use sass-loader : "^6.0.3"
-use angular2
Looks like a limitation in css-loader, as per webpack-contrib/css-loader#2. It doesn't appear to support complex src values on @font-face - you have to use multiple src values (one for each URL).
Then sorry, I don't know for sure what the problem is (though I suspect the paths you're supplying - the ones starting with /dist/ - should be changed to relative paths). This is a webpack/css-loader question, so if you are struggling to debug it, could I suggest you raise it with the webbpack/css-loader community? Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem! I try to adding font to my project ,this is my environment and step for adding font but i still can't use font and not found font file in asset while run webpack --config webpack.config.vendor.js
This is my environment
-use visual studio 2017
-use webpack v2.5.0
-use node v5.12.0
-use node-sass : "^4.5.0"
-use sass-loader : "^6.0.3"
-use angular2
soruce fonts file :
set loder in webpack.config.js
and set loder in webpack.config.vendor.js
...
and i'm using sass call @font-face
sourefile
SCSS
code in home.component.scss file
@font-face {
src: local('DBHelvethaicaMed65'), url('fonts/DBHelvethaicaXMedv65.woff') format('woff');
font-weight: normal;
font-style: normal;
/* ... other properties here ... */
}
h4 {
background-color: lightblue;
font-family: 'DBHelvethaicaMed65';
}
Help me please. Thank you so much :)
The text was updated successfully, but these errors were encountered: