M
M
mutaev_murad2018-10-12 16:46:46
Fonts
mutaev_murad, 2018-10-12 16:46:46

Font awesome npm connection?

Good afternoon! Can't import font-awesome files tried different ways.
Installed the library with npm (gulp) not webpack.

$fa-font-path: "../node_modules/font-awesome/fonts";
@import "../node_modules/font-awesome/scss/font-awesome.scss";


$fa-font-path: "../node_modules/font-awesome/fonts";
@import '~font-awesome/scss/font-awesome.scss';

$fa-font-path: "../fonts"; 
@import "~../../node_modules/font-awesome/scss/font-awesome";

With this ~ dash and without it, I wrote the full path to the files, but it doesn’t work.
Well, it writes this error in the console
5bc0a4c51ed06024703070.jpeg
If the picture is not visible
(index):8 5 GET http://localhost:3000/fonts/fontawesome-webfont.woff2?v=4.7.0 404 (Not Found)
2(index):1 GET http://localhost:3000/fonts/fontawesome-webfont.woff?v=4.7.0 404 (Not Found)

I don’t know, maybe you need to connect the files that are in this folder with the woff format

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-10-12
@alexey-m-ukolov

I don’t know, maybe you need to connect the files that are in this folder with the woff format
Need. The fact that you import into styles has nothing to do with font files, you need to connect them manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question