Frontend package management in ASP.NET Core

The Microsoft docs apparently recommend libman https://learn.microsoft.com/en-us/aspnet/core/client-side/libman/?view=aspnetcore-6.0 and then using external tools for bundling and minification, https://learn.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-6.0 But they also have docs on using Grunt and NPM. This seems like too much work tbh, and would also require configuration duplication. What do you use usually? With all these separate tools I'd also need to maintain build scripts. Do you use Nuke for that on your job? Maybe send an example?
Client-side library acquisition in ASP.NET Core with LibMan
Learn how to install client-side library assets in an ASP.NET Core project using Library Manager (LibMan).
Bundle and minify static assets in ASP.NET Core
Learn how to optimize static resources in an ASP.NET Core web application by applying bundling and minification techniques.
That's funny, both Libman and Grunt fell out of favor mweh got largely replaced by NPM, while Grunt was replaced by Gulp, and layer by bundlers Personally, I use Gulp for build tasks, both for CSS and JS
Sure thanks for the advice Gulp's last update was in 2019 You're sure it's a good idea to still use it? The world's moving fast I just installed the package and got 7 vulnerability warnings
Yeah, Gulp is slowly going to shit. There's some big update planned for the unspecified future, and even some work put into it, but when it's out nobody knows And the maintainer won't lift a finger to update dependencies because of that
Seems like a bad idea to use it
And because it's a dev tool that doesn't make it to production, so all the vulnerabilities are fair game apparently
any alternatives you can suggest?
I haven't found anything else that would count as a plain taks runner It's all bundlers nowadays

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Creating a file with a fixed sizeI am writing a video splitter app for my personal storage and would like some help. What my app doeGetting the result from a list of tasksIts been a minute since I have done async methods but i know i can do a list of tasks I just think IDiff between the Ilist and List- IList<int> res = new List<int>(); - List<int> res = new List<int>(); what is the difference betweeKeep up with Db(First)How do I keep up with my Db changes with DbFirst way? Do I rescaffold it every time I make a change?How to kill a process ?I just know about process killing and try to test it, here is my code: ```csharp using System.DiagnXUnit crashing when a stack overflow occurs.Hello, I am using XUnit to test untrusted student code. Thing is, whenever a stack overflow occurs (I need directions.i wish to learn and understand how to create and use a application window without using Winforms, WP✅ Getting a string value from a set of strings stored in a text fileI have a text file which has strings written in this following pattern: ``` Name:Age:DOB:DesignationReporting download progress with IAsyncEnumerableIs reporting progress with an `IAsyncEnumerable<T>` weird? I have the following: ```cs public interfEF Core - Code First - Add new non-null column to existing table with existing dataHi there, I would like to add a new non-null column to an existing table which contains existing daFormCollection converting value from input='text'I'm trying to pass a value (a decimal one, more specifically) through an `input="text"` _(see attach❔ Hello guys, I'm just trying to create two functionalities which's borrow and return books.https://paste.mod.gg/amnpmjcagrtk/3ActivatorUtilities.CreateInstance of a class instantiated within Program.cs 'unable to resolve type'I can verify that the two services the class takes in the constructor are correctly registered. I'm Abstract class functionsIs it fine design wise to have an abstract class A with 2 classes B and C inheriting from it, with BProtobuf deserialization not working after upgrade to .net 6Hello, I am trying to deserialize a buffer (byte array) into a model. I upgraded my solution from cEmbedding an exe in a program [Answered]I know this sounds super sus, but I wanna write an installer for a CLI tool which just copies an exeClassesI was having some trouble returning some object values in a methodAre exceptions really that slow? - with .NET gRPCI am building a server base on gRPC. In all docs about gRPC + C# there is the suggested method for einter process communicationwhat is the easiest and most performant way to communicate between 2 c# applications in the same macany one can help me to put console read() in classplease help