Paul Johnson
Paul Johnson

Reputation: 1418

MVC 4 Bundles Scripts.Render script tag for each file

Is there any way to force the bundles in MVC 4 to render a script tag for each of the bundled files for development purposes?

Upvotes: 3

Views: 10295

Answers (1)

RickAndMSFT
RickAndMSFT

Reputation: 22770

In the development/debug environment (where the compilation Element in the Web.config file is set to debug="true") the JavaScript files are not bundled or minified.
You don't use a tag in JavaScript files, it's used in obtrusive JavaScript embedded in you HTML. What are you trying to do? See my Bundling and Minification tutorial

Upvotes: 4

Related Questions