-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp SCSS with better variables and extensions #1093
Comments
url('../img/loading.gif')
by url('#{$bootstrap-fileinput-img-path}/loading.gif')
NB : an alternative would be to load this gif with base64 data, as bootstrap already does such things, what do you think? https://github.com/twbs/bootstrap/blob/v4.0.0-beta/scss/_variables.scss#L426 |
Nice input. Will look into this. |
Great :) Thanks for the plugin BTW! I could create a PR for such a case, but many things seem to be changing in sass styles on branch master, so I'd prefer not to interrupt ; However if you need me, just ask :) |
Currently revamped the SCSS definitions... not embedding images yet but linking them through variables... the sizes will be a bit on higher side for the small gif loaders when used as SVG embeds. |
Great, thanks :) Can you please add a
|
Done. Have renamed the folder |
Great, thanks :) By chance, do you have any estimation for the 4.4.5 release? |
Amazing, it works now, thank you for your reactivity! |
I am actually having this problem as well. Am using webpack and these dependencies: ├── @babel/core@7.1.0 And this is the error:
How did you fix your problem on your end @flo-sch ? |
I have same problem cc @kartik-v |
Hi, I have the same problem. Would downloading the missing assets suffice? https://github.com/kartik-v/bootstrap-fileinput/tree/0179de5cf4aa03676d9f403d63762891c9298eeb/img |
Yes it should and/or you can change these variables to point to your custom image files path |
Got it, I downloaded the missing files and webpack resolved them. Thanks! |
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, webpack cannot compile the sass file, as one of the loading.gif reference is hardcoded, and does not use the
$bootstrap-fileinput-img-path
variable.I was expecting webpack to compile it properly with such as variable.
Could you please replace
url('../img/loading.gif')
byurl('#{$bootstrap-fileinput-img-path}/loading.gif')
here ?https://github.com/kartik-v/bootstrap-fileinput/blob/v4.4.4/sass/fileinput.scss#L64
Environment
Browsers
Operating System
Libraries
N/A
Isolating the problem
(Style only, not a JavaScript problem)
The text was updated successfully, but these errors were encountered: