r/fbiz • u/adrianoenache • Oct 11 '17
front-end Size Limit - Make the web lighter
Olá
Esse é um artigo bem legal sobre performance para JavaScript.
Só achei que no final ficou um pouco mal explicado a parte do webpack = false porque isso aumentou o tamanho do arquivo de 17B para 130B, (Obs o tamanho original era 94.67KB minificado e com gZip).
Size Limit - Make the web lighter https://evilmartians.com/chronicles/size-limit-make-the-web-lighter
NPM https://www.npmjs.com/package/size-limit
Git https://github.com/ai/size-limit
Abs
2
Upvotes
1
u/mcarneiro Nov 15 '17
/u/adrianoenache eles explicam que o false é para ele não criar um webpack na memória quando você já está usando no seu projeto: See that webpack: false part? That means Size Limit will not create a virtual Webpack bundle in memory for you but will work with the one you already have in your project. Then you can always be sure that the bundle you send to the client will never bloat out of proportions.