title: Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function
body: <p>Hello when I run this project in Developer mode (grunt server) <a href="https://github.com/kennethlynne/generator-angular-xl" rel="noreferrer">https://github.com/kennethlynne/generator-angular-xl</a> everything is ok but when I run it in production mode (grunt build) I get an `</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: In strict mode code, functions can only be
    declared at  top level or immediately within another function</p>
  </blockquote>
  
  <p>Anyone have any idea what's going on? 
  Thanks,</p>
  
  <p>Ps. I posted a link to the project instead of code since the JS is split in many files.</p>