Why we keep .min.js file in VS solution while Optimization BundleCollection will minify them in RunTime?

132 views Asked by At

As you knew System.Web.Optimization will Minify JavaScript & CSS files for Release mode in run-time and publishing.

So, Why we keep .min.js file in VS solution?

enter image description here

I know I can remove min files from project but what to know main reason.

1

There are 1 answers

0
XAMT On BEST ANSWER

As I found using the minified version of the library that release by contributor have some benefits:

  1. Helps the client browser used the cached library from other sites.
  2. ASP.NET Core doesn't have predefined minified on default project.
  3. Minifiers faced some problems with big libraries like Bootstrap 4