Skip to content

Commit 76cdb8e

Browse files
author
Guillaume Chau
committed
Note about Nuxt and generic package
1 parent 9f76a2c commit 76cdb8e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/open-in-editor.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Open component in editor
22

3+
## Nuxt.js
4+
5+
Nuxt supports this feature out-of-the-box. Make sure to be in debug mode.
6+
7+
## Webpack
8+
39
In your Vue project, install the [express-open-in-editor](https://github.com/lahmatiy/express-open-in-editor) package and modifiy your webpack configuration:
410

511
1. Import the package:
@@ -23,3 +29,7 @@ devServer: {
2329
3. You can change `'code'` with the editor you are using, see the [supported editors list](https://github.com/lahmatiy/open-in-editor#editor).
2430

2531
You can now click on the name of the component in the Component inspector pane (if the devtools knows about its file source, a tooltip will appear).
32+
33+
## Node.js
34+
35+
You can use the [open-in-editor](https://github.com/lahmatiy/open-in-editor) package to setup an HTTP route with the `/__open-in-editor` path. It will receive `file` as an URL variable.

0 commit comments

Comments
 (0)