Search code examples
angularjsgruntjsangular-ui-routeryeoman-generator

html5 $locationProvider work fine on grunt serve but not working in grunt build


$locationProvider.html5Mode(true) works fine when i ran serve using grunt. but doesn't work with grunt build and show error in console unexpected syntax error <


Solution

  • if you are deploying on sub-domians like www.test.com/test so you have to mention /test on base tag

    thats it!