문제

I have added chosen-package to my app, but when I deployed it on production, images of the package are not loaded. Example page: http://package-images.meteor.com/

How to show/load images of Meteor package on production server?

도움이 되었습니까?

해결책

Note to package creators: If you include images and css which reference those images, you must modify the paths (or user an override css file) to start with /packages, otherwise the files won't be found in production.

I haven't used chosen but after spending a couple of minutes looking at the source it looks like it wasn't packaged in a way that will work with the current version of meteor's production path system. You have two choices:

  1. Use select2 instead.
  2. Create a new version of chosen (you could host it locally or create a new atmosphere package), and include a path override css file. See this example from select2.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top