Asp.Net MVC 4 bundle don't provide – Alex Marty Mar 14 '13 at 11:33

  • This answer is not correct. You _can_ do that using Scripts.RenderFormat as Hao Kung reported. See this answer: http://stackoverflow.com/questions/16232566/how-to-set-charset-to-js-file-in-mvc-scriptbundle – Kevin Babcock Feb 01 '14 at 00:18
  • 1

    You could also use the RenderFormat method to customize how the Scripts helper renders tags:

    Produce a "type" attribute in the "script" tag when using Scripts.Render in ASP.NET MVC 4

    Community
    • 1
    • 1
    Hao Kung
    • 28,040
    • 6
    • 84
    • 93