Meteor Images, CSS, “Normal” Web Serving

前端 未结 2 994
小鲜肉
小鲜肉 2021-02-04 06:02

I\'ve seen this question come up a lot;

  • How do I put images on my Meteor website?
  • How do I host \"standard\" web content with Meteor?
  • I tried add
2条回答
  •  眼角桃花
    2021-02-04 06:48

    Create a new folder public inside the project directory. Add a new folder img (or any other name of your choice) inside the public folder. Copy all the images that you require to be added in to your HTML into this folder.

    Now you can use it like -

    You don't need to include /public in the in the URL.

提交回复
热议问题