Open jeusdi opened 6 years ago
Any ideas?
The most likely reason is that the path is not entirely correct but I would need more information to exactly pinpoint the problem. I would recommend just using a CDN for now.
Good luck!
I think I got it working. In webpack.config.ts
{ test: /.scss$/, loaders: ['to-string-loader', 'css-loader', 'resolve-url-loader', 'sass-loader?sourceMap'] }, { test: /.woff(2)?(\?v=[0-9].[0-9].[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff"}, { test: /.(png|jpg|jpeg|gif|svg)$/, loader: "url-loader?limit=10000" }, { test: /.(ttf|eot|svg)(\?v=[0-9].[0-9].[0-9])?$/, loader: "file-loader" },
And in my .scss
file I just
@import '~font-awesome/scss/font-awesome.scss'
I am super new to this specific Angular file handling proccess. This was cobbled together from examples all around the web.
I've installed font-awesome:
I've added these rules on
constants.js
:Into my
styles.scss
I've added this import:font-awesome
css rules are loaded but, fonts are not loaded.It seems fonts are requested by browser:
However, the response is the main html page:
Any ideas?