If you’re using the Bundler & Minifier package in ASP.NET Core (instead of something like Webpack, Gulp, or the new hotness Parcel) and your bundleconfig.json
has these properties set on your JavaScript files:
You can remove those, because those are the default. On a project I’m working on that uses it, it shaved ~50 LOC on our bundleconfig.json
which kept things less noisy.
Before:
After:
If you have those options listed, that shouldn’t come as much of a surprise. The ASP.NET Core templates have these options explicitly listed by default, so I would expect most people who use the Bundler & Minifier to follow suit.
If you want to verify that the bundles are the same, it’s easy to test it out in Visual Studio.
- Go to the Task Runner Explorer in Visual Studio
- Go to bundleconfig.json
- Right-click on Update all files
- Click Run
Then check to see if your version control picks up any changes. Spoiler: it won’t. 🙂
Hope this helps!