is it possible to bundle only .js file and ignoring .CSS files.
Yes, the normal behavior is JS files are in JavaScript bundles (ScriptBundle) and CSS files are in CSS bundles (StyleBundle). Perhaps you are trying to combine JS and CSS files in the same bundle?
Member
9 Points
36 Posts
Optimize only .js file not .CSS files using bundling
Mar 16, 2017 05:17 PM|Harish kakani|LINK
Running into some kind of issue while optimizing .CSS files, is it possible to bundle only .js file and ignoring .CSS files.
All-Star
52201 Points
23274 Posts
Re: Optimize only .js file not .CSS files using bundling
Mar 16, 2017 05:26 PM|mgebhard|LINK
Yes, the normal behavior is JS files are in JavaScript bundles (ScriptBundle) and CSS files are in CSS bundles (StyleBundle). Perhaps you are trying to combine JS and CSS files in the same bundle?
Please see bundling and minification on MSDN.
https://docs.microsoft.com/en-us/aspnet/mvc/overview/performance/bundling-and-minification