ASP.NET - Web.Config - Compilation debug="true" - Bundling & Minification
I am using Bootstrap in
one of my ASP.NET MVC project and during debugging I noticed that none of
the Bootstrap styles were applied to the page. A quick check using the browser tools revealed that the bootstrap JavaScript file is not loaded as part of the project. The project has been setup to use ASP.NET bundling process
to load the Bootstrap file and all the files were loaded except for the
Bootstrap JavaScript file. The notable difference was that the Bootstrap JavaScript file was a
minified file while the rest are not.
After a little research,
I found that, if the debug attribute under compilation tag in web.config is set
to true then ASP.NET project will not load the minified files while debugging
the project.
More information about this can be
found in these following links -
Labels: .NET, ASP.NET, ASP.NET MVC 4, Bootstrap, Bundling, Compilation min files, Compiling, debug, Debugging, Javascript, JS, Minification, Styles, Stylesheet, Web Project, Web.Config, website
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]