Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

image src in ejs template is not updated when building project. #279

Open
synthresin opened this issue Aug 2, 2014 · 1 comment
Open

Comments

@synthresin
Copy link

when an image tag is inside an ejs template.
<img src="images/logo.png" alt="" class="logo">
their src attribute is not updated with minified file name when builded

@jianle
Copy link

jianle commented Jun 29, 2017

you can try like this:

<img src="<%= require('images/logo.png') %>" alt="" class="logo">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants