aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

Vendor + main-client file sizes

Open Flood opened this issue 6 years ago • 2 comments

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?

Flood avatar Sep 07 '18 09:09 Flood

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.

gerasymchuk25 avatar Sep 10 '18 10:09 gerasymchuk25

Thanks! How do I know which packages that should be in treeShakableModules/nonTreeShakableModules?

Flood avatar Sep 10 '18 10:09 Flood