Image address in ember templates grunt build

前端 未结 4 2111
粉色の甜心
粉色の甜心 2021-01-01 01:51

I used Yeoman to create a web app in EmberJS. Everything works ok, but after using the grunt build command, if I view the built app in the browser (from dist di

4条回答
  •  渐次进展
    2021-01-01 02:03

    FWIW, I believe that the author of rev is being opinionated about something here: they're asserting that images should be included as CSS backgrounds, not via img tags. So, if your templates and views get all their images that way, you won't have any trouble.

    IMHO, this is a pretty good convention to follow. Do everything with background images, and the problem should be solved across the application.

提交回复
热议问题