generator-backbone icon indicating copy to clipboard operation
generator-backbone copied to clipboard

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

Open thomasmery opened this issue 12 years ago • 6 comments

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

thomasmery avatar Nov 22 '12 07:11 thomasmery

@revathskumar is this still an issue?

addyosmani avatar May 17 '13 13:05 addyosmani

@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 avatar May 19 '13 17:05 revathskumar

@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.

revathskumar avatar Jun 04 '13 14:06 revathskumar

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

passy avatar Jun 04 '13 21:06 passy

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

sleeper avatar Jun 06 '13 07:06 sleeper

@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?

revathskumar avatar Jun 08 '13 20:06 revathskumar