I am using gulp to minify and copy my html views from dev to prod directories. The issue I am having is that somehow I need to account for the changing directory structure in the templateUrl parameter of my custom directives.
For example if dev and prod look like:
dev -> js -> views -> view.html
and
prod -> js -> views -> view.html
my directive would look like:
directive = {
templateUrl = 'dev/js/views/view.html'
}
Of course, this works fine in dev but when I build my production app, it does not work...
Is there a standard approach for dealing with this? Do I simply have to give up on having two different view directories (one for dev and one for prod)?
Thanks in advance.