Skip to main content

Posts

Showing posts with the label npm

ASP.NET Core 2.2 with LibMan, NPM and Webpack 4

Javascript tooling is a mess . Every time that I start a new application, I'm always asking myself how I need to setup my tooling. Thankfully, there is a sane way of setting up your tooling that won't make you want to pull your hair out once you set it up. We'll explore how to setup tooling for using NPM modules in your ASP.NET Core [2.2] applications with LibMan and Webpack 4. Modern logo of tooling The example will be simple, but sufficient, in order for you to add your complexity that is needed for your application. Source code For those that came for just the source code, you can find that right here . Overview We are building a tooling pipeline that will take NPM modules, and use webpack to bundle them. Using LibMan, we will move them into the correct directory so our ASP.NET Core application can serve them. An overview of our process we are building Installation We will be making use of webpack , LibMan  and the NPM Task Runner explorer  t...