Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for New Nuxt DevTools is mindblowing! 🤯
Michał Kuncio
Michał Kuncio

Posted on • Originally published atmichalkuncio.com

New Nuxt DevTools is mindblowing! 🤯

Nuxt DevTools has just landed!

Nuxt 3 got released a few months ago but the tool I was the most curious about remained unreleased. Until now! Today, the Nuxt team has announced the release ofNuxt DevTools! The previous version of Nuxt didn't have the dedicated devtools specifically for Nuxt so I was even more curious. The tool is still in beta but it's ready to test with the freshly released Nuxt 3.2 and I have to tell you something: it's absolutely gorgeous!

Installation

First of all, you have to make sure that you have the latest version of Nuxt installed which is Nuxt 3.2.0.

Let's install this beast!

npm i-D @nuxt/devtools
Enter fullscreen modeExit fullscreen mode

and add the module to yournuxt.config.ts file:

exportdefaultdefineNuxtConfig({modules:['@nuxt/devtools',],})
Enter fullscreen modeExit fullscreen mode

Now please run the server to see Nuxt DevTools in action!

npm run dev
Enter fullscreen modeExit fullscreen mode

Quick look

When you spin up a dev server, you can notice that there is a tiny button with Nuxt logo in the bottom center of your screen. You can click it or usealt + D command to expand the DevTools panel.

Nuxt Devtools button

This is how it looks upon expanding:

Nuxt devtools welcome screen

Looks awesome, isn't it? TheOverview tab shows basic info about the Nuxt version, the number of pages, components, modules and plugins. Let's take a quick look at what else it has to offer.

Pages

This section of DevTools lists all pages within our application. You can also quickly change the routes by simply clicking on a specific route.

Nuxt devtools pages screen

Components

The "Components" section is responsible for listing all user, runtime and built-in components. When you click on a specific component, the component file will open inside Visual Studio Code! This is so handy!

Nuxt devtools components screen

You can also switch to graph mode which shows relations between components:

Nuxt devtools components graph screen

How cool is that!

Imports

"Imports" is a cool way of presenting which user or built-in function are imported to our codebase. If you click on some function, you can inspect where this particular function is used.

Nuxt devtools imports screen

Modules

Inside "modules", you can simply inspect which modules are available inside our app. On my example app I have pinia installed.

Nuxt devtools module screen

Plugins

This section is responsible for listing all plugins inside our Nuxt application.

Nuxt devtools plugins screen

Hooks

This section can be informative. It shows us how much time is spent on some hooks. This includes app hooks (like mounted, created) and other more specific hooks like links, pages, vite, etc.

Nuxt devtools hooks screen

Inspect

Inside this section, you can easily inspect the code for specific components, styles and additional TS files.

Nuxt devtools inspect screen

Summary

Vue ecosystem was always known for top-notch tooling and devtools. I think that Vue Devtools should be the industry standard and is MILES ahead of React devtools. Also,Vite, which was made byVue creatorEvan You has become an industry standard and even React community agrees that Vite should replace CRA and Webpack as the default scaffolding and bundling solution. Knowing all of that, it's not surprising that Nuxt DevTools is a top-quality product. It will help develop and debug Nuxt apps but I'm pretty sure that it's only the beginning and more interesting things will come. Great times are ahead of Vue the community!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Senior frontend engineer, Vue.js enthusiast 💚 I'm writing about modern webdev at https://michalkuncio.com. You can also check my twitter account: https://twitter.com/michalkuncio
  • Joined

More fromMichał Kuncio

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp