Loading background images from css file in meteor
You have to prefix a /
in front of your file name.
So I managed to get it to work. I created a resources directory in the public folder and changed the url in the css file to url("/resources/button")
, which seemed to do the trick.
You can leave your CSS as it is and put the themes.gif file in the /public
directory of your Meteor app -- then it should be accessible.
Per the docs:
Lastly, the Meteor server will serve any files under the public directory, just like in a Rails or Django project. This is the place for images, favicon.ico, robots.txt, and anything else.