emaphp / underscore-template-loader

A Underscore and Lodash template loader for Webpack
MIT License
104 stars 24 forks source link

Requiring images #3

Closed SpaceK33z closed 8 years ago

SpaceK33z commented 8 years ago

How would you require images in a template? html-loader doesn't work with this loader, so I think it's necessary to merge a bit of the html-loader logic in this loader for this to work.

See also altano/handlebars-loader#37

emaphp commented 8 years ago

this could be an interesting feature. I'm looking at html-loader source code right now. I'll let you know if I come up with something.

emaphp commented 8 years ago

I've added support for images through file-loader and url-loader. I just published these changes through npm and they're already available in 0.3.

SpaceK33z commented 8 years ago

Thanks! I will try it out next week, on vacation now ;).

On Thu, Aug 13, 2015, 19:42 Emmanuel Antico notifications@github.com wrote:

I've added support for images through file-loader and url-loader. I just published these changes through npm and they're already available in 0.3.

— Reply to this email directly or view it on GitHub https://github.com/emaphp/underscore-template-loader/issues/3#issuecomment-130775924 .

SpaceK33z commented 8 years ago

Tested it, works perfectly. Thank you again :).