DEV Community

Discussion on: Styled components vs Emotion js: A performance perspective

Collapse
timothy profile image
Timothy

Great article! Is the data you get under "First Load JS" specific to Next? I'm using Gatsby and on executing a build I only get times, not sizes (see attachment). How do I get something like yours? Not sure if I am missing something obvious, but please enlighten me :)

Collapse
meetdave3 profile image
Meet Dave Author

Hi Timothy! Thanks for appreciating. Hoping the write up has helped you in some way. :)

For Gatsby, yes there is a webpack plugin which you need to configure in your gatsby-config.js file. The plugin goes by the name: gatsby-plugin-webpack-size

Collapse
timothy profile image
Timothy

Great I'll try it!👌