I am a web developer using .NET/C#/Razor Pages/Vanilla JS. I’m trying to integrate the npm packages in my Visual Studio 2022 workflow but failing to do so (or just think it is very complicated as I am not an expert on npm).
Here is what I have done so far in Visual Studio (besides reading countless tutorials and the guide):
npm install @uppy/core @uppy/dashboard
which creates a load of files in node_modules/@uppy. Now I have a list of source files in that folder. How do I take from here, i.e. how to get only the necessary files into my wwwroot folder without having to manually copy and picking the right js and css files every time a package is updated?
Preferably the necessary files go into a sub folder of wwwroot, such as wwwroot/lib/@uppy.
I guess what I am really asking is, what is the correct workflow?
PS:
- I don’t use react, angular or similar. Just Vanilla JS.
- I thought about using the CDN/jsdelivr version but 515kb of scripts is simply too much.