Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bundle JavaScript and CSS in Visual Studio?

What is the officially blessed way to minify and bundle js/css in Visual Studio?

Up until last year, Bundler and Minifier was the Microsoft promoted way to go, but it's been abandoned and has some significant issues to boot.

So what is the currently supported way to bundle and minify JavaScript and CSS in Visual Studio 2019?

like image 787
AngryHacker Avatar asked Apr 30 '26 10:04

AngryHacker


1 Answers

The Bundler and Minifier extension integrates with the CommandTaskRunner extension (which is still an active project) and can convert the bundleconfig.json files into Node/npm/Gulp tasks which do the same thing.

enter image description here

like image 94
Dai Avatar answered May 02 '26 23:05

Dai



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!