Wrong path for static images
uncured opened this issue · comments
Hi there.
On Meteor 0.9.3.1 (OS X 10.9.5) I have issue with loading.gif.
At start-up console prints warning:
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost:3000/packages/natestrauser:x-editable-bootstrap/lib/bootstrap-editable/img/loading.gif".
As your css override file implies:
.editableform-loading {
background-image: url('/packages/natestrauser:x-editable-bootstrap/lib/bootstrap-editable/img/loading.gif');
}
But all packages path that I have on local machine is like natestrauser/x-editable-bootstrap
, not natestrauser:x-editable-bootstrap
.
So the right path for this resource should be
http://localhost:3000/packages/natestrauser_x-editable-bootstrap/lib/bootstrap-editable/img/loading.gif
As I digg deeper in Meteor-generated general (Big-Daddy) CSS in .meteor/local/build/programs/web.browser/
there is 2 rules:
Right one, that generated from you package lib bootstrap-editable.css with right path
.editableform-loading {
background: url('packages/natestrauser_x-editable-bootstrap/lib/bootstrap-editable/img/loading.gif') center center no-repeat;
height: 25px;
width: auto;
min-width: 25px;
}
and wrong one, generated from your path-override.css
.editableform-loading {
background-image: url('/packages/natestrauser:x-editable-bootstrap/lib/bootstrap-editable/img/loading.gif');
}
Why would you override the right path Meteor generated with wrong path?
There was the same bug in issue mizzao/meteor-bootstrap-3#5 and Andrew was able fix it in his package.
@uncured sent PR.