Aurelia CLI new project default Webpack configuration

#1

I’m not a Webpack master but Aurelia’s default Webpack configuration (that is generated when using the CLI to create a new project) seems to produce a lot of .js chunks. As in, more than 20 from what I can see. Any explanations on why things are set up this way by default? Do we really need every dependency to be its own chunk? Regardless of HTTP/2 multiplexing it seems that this amount of files would still negatively affect load performance.

1 Like
#2

I was wondering this before as well. It does seem excessive and should not be the default. I want a good example of how to make chunks of out of sections of my code

1 Like
#3

We are about the modify the webpack part of the CLI. You can follow & chime in the discussion here https://github.com/aurelia/cli/issues/1098

1 Like