DEV Community

Discussion on: Managing ASP.NET Core MVC front-end dependencies with npm and webpack (part 2)

Collapse
 
martajohnsson profile image
Marta Johnsson

Thank You for Your answer.
I did find another solution. I can use expose-loader to make it work.
{
test: require.resolve("jquery"),
loader: "expose-loader",
options: {
exposes: ["$", "jQuery"],
},
},

Thread Thread
 
larswillemsens profile image
Lars Willemsens

Great! That looks like an ideal solution. Thanks for the addition!