AntoineMary / grunt-angular-file-loader

Automatically sort and inject AngularJS app files depending on module definitions and usage
MIT License
5 stars 8 forks source link

Add slash before the generated path #3

Closed szabobar closed 8 years ago

szabobar commented 8 years ago

Dear developer!

Thanks for the plugin, it is very usefull for me, but I got a simple problem with it.

I would like to start all generated script src path from / Because: Current target is looks like: But If I write angular HTML5 url friendly application, and I got an application url like: http://localhost/login , then the generated scripts url would like to download from http://localhost/login/js/auth/... , and from the root. But if the script generate the / to the front of the script url, then everything will be fine.

Thanks

AntoineMary commented 8 years ago

Hi, Nearly 5 months that I haven't touch this project... I take your request. Soon I will have more time to work on my projects, I think I will rewrite it from scratch to handle more case. But for the moment consider it like unmaintained.

noXi89 commented 8 years ago

For HTML5-mode you could try to set the tag in your index.html to your project root on the server. At the other hand a prefix property would be great.

AntoineMary commented 8 years ago

As suggested by @noXi89 , I have added a 'prefix' option, available in 1.3.1