I’m using the Aurelia CLI-Webpack setup. When I build for production it seems that Webpack is not putting vendor components in the vendor bundle, looking at the size of the files. I thought that Webpack automatically separated app components from vendor components.
I could list my webpack.config.js file here but I am basically using the version created by the CLI. Do I have to manually specify vendor modules somewhere?
It turns out that I can split my code into chunks very easily by passing a chunk name as the second parameter of PLATFORM.moduleName(). Aurelia and webpack automatically create a chunk out of it. Thanks to this discourse article: