Looking to incorporate a unique font into my project:
@font-face {
font-family: 'bikeshop';
src: url('/src/styles/bikeFont/font/bikeshop.eot?37006833');
src: url('/src/styles/bikeFont/font/bikeshop.eot?37006833#iefix') format('embedded-opentype'),
url('/src/styles/bikeFont/font/bikeshop.woff2?37006833') format('woff2'),
url('/src/styles/bikeFont/font/bikeshop.woff?37006833') format('woff'),
url('/src/styles/bikeFont/font/bikeshop.ttf?37006833') format('truetype'),
url('/src/styles/bikeFont/font/bikeshop.svg?37006833#bikeshop') format('svg');
font-weight: normal;
font-style: normal;
}
While compiling via "npm run server", the fonticons are not displaying on the website.
The console is showing these errors:
GET "domain"/src/styles/bikeFont/font/bikeshop.woff2?37006833
File: shared_styles_host.js:90
GET "domain"/src/styles/bikeFont/font/bikeshop.woff?37006833
File: src/styles/bikeFont/font/bikeshop.woff?37006833:1
GET "domain"/src/styles/bikeFont/font/bikeshop.ttf?37006833
File: src/styles/bikeFont/font/bikeshop.ttf?37006833:1
Do I need to add a new loader for this in my webpack.common.js configuration?
Edit:
I have included the @font-face in my scss-file and using the following webpack rule for it
{
test: /\.scss$/,
exclude: /node_modules/,
loaders: ['raw-loader', 'sass-loader'] // sass-loader not scss-loader
},