Answer the question
In order to leave comments, you need to log in
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";
(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)
Answer the question
In order to leave comments, you need to log in
I don’t know, maybe you need to connect the files that are in this folder with the woff formatNeed. 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 questionAsk a Question
731 491 924 answers to any question