Open davestewart opened 7 years ago
Hi, thanks for your issue!
Yes, it really was a configuration issue in build/config.js
. It was fixed in 346a18d7d95a4e322be53e9543ad105b5bec9444.
Nice one!
Still a huge vendor file though.
Do you have any advice on how to trim this down?
I know Rollup would probably use something like tree shaking to minimise bloat; I presume WebPack has something similar?
(though saying that Element UI on Foss CDN is 400k, but I guess that's the whole lib)
Yes, Webpack has tree-shaking and other tools to minimize bundle. The whole element-ui is include in vendor.js file. So, the best way to minimize bundle is code-splitting + lazy-loading. Another way is just code-splitting, but it still doesn't fix issues with bundle size. Also, 400kb in vendor it's not too huge bundle, imho
yes,Element-ui so much big
Hi,
Just running the
npm run build
script with the base install and I get a 485kb file:Seems huge for a prod build, and one I've not added to.
Is this a configuration issue?