Open wmarques opened 5 years ago
Here some problems:
twbs-font-path
and twbs-image-path
functions for generate url when you enable $bootstrap-sass-asset-helper: true
, you should use true
value only when use Compass
, Sprockets
, or Mincer
. Without this modules bootstrap generate :
url(twbs-font-path("~bootstrap-sass/assets/fonts/bootstrapglyphicons-halflings-regular.eot?#iefix"))
It is invalid url so we can't resolve their, url
can't contains other functions inside.
Also webpack doesn't add trailing slash on end of url
variable.
Solution:
$bootstrap-sass-asset-helper: false;
$icon-font-path: '~bootstrap-sass/assets/fonts/bootstrap/';
(add /
at end)Also you can install compass
or other library above (but they deprecated, better don't use them)
@evilebottnawi thanks for your help, you are correct ! It's solved
Same problem solved thanks to @evilebottnawi.
Reported in #883 . I'm having an issue when trying to import
bootstrap-sass
on my project with css-loader. It works with css-loader v1.x.Expected Behavior
SCSS + CSS compiles correctly
Actual Behavior
Code
How Do We Reproduce?
Clone https://github.com/wmarques/css-loader-bug Run
npm i
thennpm start
ornpm run build