angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

ngtemplates build step misses out on revisioning #360

Closed Climax777 closed 9 years ago

Climax777 commented 10 years ago

Hi

The ngtemplates build task will not have rev'd assets. Is it possible to rewrite the built templates as a final step? Maybe a regex replace will be enough.

I not only need to revision rewrite them, but I would also like to CDN prepend them with my CDN.

I've managed to do this for non-template related includes (like css etc.), but not angular templates.

This is all necessary for me, because I need to serve all assets from CDN, and currently template dependencies will not be served.

Climax777 commented 10 years ago

It may be related to: https://github.com/DaftMonk/generator-angular-fullstack/issues/347

Climax777 commented 10 years ago

Okay I see now that it is working with usemin. I had a problem with imagemin not generating assets.

However there is no prefix being applied to the urls.

How would I apply a CDN to those urls (in the ng-templates)?

JaKXz commented 10 years ago

Sorry for the delayed response @Climax777, is your question related to #441?

Climax777 commented 10 years ago

It is not related to my original question, but it does answer a related question I have been meaning to ask. Thanks

aendra-rininsland commented 9 years ago

I'm having the same issue, and I think #802 is a dupe of this.

Edit: I solved my problem, which involved a SVG file with hyphens in the filename. Changing the filename to camelcase solved everything!