You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev-guide/plugin-dev.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,51 +241,57 @@ Let's consider the case where we have created a `router.js` file via [templating
241
241
api.injectImports(api.entryFile, `import router from './router'`)
242
242
```
243
243
244
-
Now, when we have a router imported, we can inject this router to the Vue instance in the main file. We will use `onCreateComplete` hook which is to be called when the files have been written to disk.
244
+
Now, when we have a router imported, we can inject this router to the Vue instance in the main file. We will use `afterInvoke` hook which is to be called when the files have been written to disk.
245
245
246
246
First, we need to read main file content with Node `fs` module (which provides an API for interacting with the file system) and split this content on lines:
0 commit comments