Open Kuchiriel opened 7 years ago
please check the webpack recipe https://github.com/raulghm/Font-Awesome-Stylus/tree/master/recipes/webpack-2
Wondering if the above fix actually worked for anyone. I still get this error using:
$fa-font-path = './fonts';
@import '~font-awesome-stylus/index.styl';
It is trying to load the font-awesome-stylus.js file when imported into a stylus file so it dies trying to parse it. The recipe does not work for me.
3| exports.path = __dirname;
4|
5| function plugin() {
6| return function(style) {
7| style.include(__dirname);
------^
8| }
9| }
The recipe didn't work, perhaps because I'm using Webpack 3? Nevertheless, I have no way of telling what to do about that…
Try $fa-font-path = "~font-awesome-stylus/fonts" or @import "~font-awesome-stylus/index"
I am trying to import to replace font-awesome scss
@import '~font-awesome-stylus'