aspnetcore-angular-universal
aspnetcore-angular-universal copied to clipboard
Vendor + main-client file sizes
The vendor file should include most of the packages from npm, right? My current vendor file is 40kb but the main-client is 950kb (compressed). Any ideas what to do?
You should do correct splitting of treeShakableModules and nonTreeShakableModules arrays in webpack.config.vendor.js. For example, put some part of npm packages in nonTreeShakableModules.
Thanks! How do I know which packages that should be in treeShakableModules/nonTreeShakableModules?