Closed laggingreflex closed 7 years ago
Ahh, this worked:
$icon-font-path = "~bootstrap-styl/fonts/"
@import bootstrap
hhjhj
It is not a fixed folder, it enters node_modules and observes the real route. In my case it is:
//** Load fonts from this directory.
@icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
This is done in the file variables.less
@italomoralesf i guess you mean
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"
?
I followed the recommendation on #1119 and added resolve-url-loader
and that helped in my case.
hello, i am developing a website in react js but i am getting an error
./src/custom.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/custom.scss) Module not found: Can't resolve 'bootstrap-style/fonts/glyphicons-halflings-regular.eot' in 'D:\work\frontend-joeyco\src'
can please anyone helpme thankyou in advance
@smshaheryar follow @jo-soft 's answer. This worked for me.
I'm trying to use this with Webpack. I looked at another webpack issue #122 but mine seems different.
I'm getting this error:
The
Can't resolve '../fonts/glyphicons-halflings-regular.eot'
indicates that it's trying to load that font file, which actually resides in thenode_modules/bootstrap-styl/fonts
dir, but it's trying to resolve it from my app's templates dir.I also notice that there's a variable
and so I tried changing it before importing
but then the error becomes
Can't resolve './bootstrap/fonts/glyphicons-
-- it adds./
meaning it's still looking relative to my app's templates dir.