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

add path to .ejs template files in the html target in usemin task in Grunfile.js #1

Open
thomasmery opened this issue Nov 22, 2012 · 6 comments

Comments

@thomasmery
Copy link

As EJS template file are created by default when creating Backbone view through the generator it seems odd that they are not included in the process of updating images file names to their revved version when building

line 146 : html: ['/*.html', '/*.ejs'],

any opinions ?

thnks

revathskumar referenced this issue in revathskumar/generator-backbone Apr 2, 2013
* will fix the issue #1
* All ejs files in app/scripts/templates directory will be precompile to scripts/templates.js
* Uses grunt-contrib-jst
@addyosmani
Copy link
Member

@revathskumar is this still an issue?

@revathskumar
Copy link
Member

@addyosmani Sorry, I missed it. For me this week will be a busy week. will look into this issue by week end.
Is that okey??

@revathskumar
Copy link
Member

@addyosmani / @passy / @sindresorhus : The rev task was missing for sometimes. will put that back today.
Even after adding the rev task this issue still there. They will create revved version for images, css and scripts files and update the references in the html files but not in the compiled ejs (template/js) files.

please help me to solve this issue.

@passy
Copy link
Member

passy commented Jun 4, 2013

I don't think that usemin can handle replacing references in compiled templates at the moment.

@sleeper
Copy link
Contributor

sleeper commented Jun 6, 2013

v2.0 is able to do that .. You just need to provide your own regexp

@revathskumar
Copy link
Member

@sleeper if I am using regex

  • How would I know the image names after revved? It should be something like 15e86.yeoman.png right?
  • If all of my templates contain total of more than 10 images, using this option I have to hard code all the images in my Gruntfile. right?

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

5 participants