Skip to content

How to minify Javascript / or how to use SWC ? #65756

Answered by icyJoseph
Elindo586 asked this question in Help
Discussion options

You must be logged in to vote

Hi,

The problem with running a tool like lighthouse is that it picks up on everything running in your current browser session, including extensions!

If its often a good idea to run this in an incognito window, or, better yet using the lighthouse CLI.

So to summarise, this is not an issue with your app, lighthouse is just picking on an an extension you have installed, and flagging that.

For completeness sake, during build time Next.js already minifies your code, by using SWC, or Terser, by default, you don't have to worry about this.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Elindo586
Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants