Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 881
Paul Johnson Avatar asked Jan 28 '26 08:01

Paul Johnson


1 Answers

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

like image 128
RickAndMSFT Avatar answered Jan 30 '26 02:01

RickAndMSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!