From the course: Master Next.js: Elaborate Hands-On Web Development, React Basics, Advanced Next.js, and Deployment

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

What is minification in Next.js?

What is minification in Next.js?

Okay, let's talk about minifying. Let's get into this, all right? So the minifier. So when we create code, we write this code, if I can even go back to the developer code, because right now we're looking at this compiled code. When you're writing quality code, it's not just about smart refactored, pure functionality, speed and efficiency, and time complexity. All that's great, but the other side of it is actually code that's readable. Humans need to be able to read your code because even if you're working on that part of the project yourself, chances are when you come back to it later on, if you don't write it in a comprehensible format, even you, the writer, can look at it and be like, what the heck is this again? And that ruins a lot of time and wastes a lot of time. So we have this human comprehension way to write, the code gets compiled down, But even when the code gets compiled, the code can encompass still additional details. So you have comments, spacing, indentation, multiple…

Contents