aspnet-webpack icon indicating copy to clipboard operation
aspnet-webpack copied to clipboard

Using external config, how can I point to multiple bundles?

Open IAMtheIAM opened this issue 8 years ago • 1 comments

The docs you wrote say to add

app.UseWebpack("webpack.config.js", "dist/main.bundle.js", new WebpackDevServerOptions("localhost", 4000));

This is fine if I use one bundle for all, but if I chunk my bundles, then how can I tell it to load more than one bundle? For example. I want to load all files in this format: [name].bundle.js where [name] represents any bundle chunk.

I'm attempting to integrate your repo with https://github.com/AngularClass/angular2-webpack-starter repo which has advanced webpack config already setup and angular 2

IAMtheIAM avatar May 03 '16 20:05 IAMtheIAM

In general this nuget package should be used only during development and at any case not during production. During development it's more common to just use one bundle file and not splitting it. It is feasible to support something like this but then the developer should be responsible of adding the bundle to the correct Razor page probably through a Tag Helper. How this sounds to you?

xabikos avatar May 04 '16 11:05 xabikos