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/guide/migration.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ See [Bundlers > Webpack](../reference/bundler/webpack.md)
100
100
Removed.
101
101
102
102
Use [head](../reference/frontmatter.md#head) instead. For example:
103
-
103
+
104
104
```yaml
105
105
head:
106
106
- - meta
@@ -153,15 +153,15 @@ If you are using default theme, the palette system is still available but migrat
153
153
154
154
#### .vuepress/enhanceApp.js
155
155
156
-
Renamed to `.vuepress/clientAppEnhance.{js,ts}`.
156
+
Renamed to `.vuepress/clientAppEnhance.{js,ts}`.
157
157
158
158
The arguments of the function are changed, too.
159
159
160
160
#### .vuepress/components/
161
161
162
162
Files in this directory will not be registered as Vue components automatically.
163
163
164
-
You need to use `@vuepress/plugin-register-components`, or register your components manually in `.vuepress/clientAppEnhance.{js,ts}`.
164
+
You need to use [@vuepress/plugin-register-components](../reference/plugin/register-components.md), or register your components manually in `.vuepress/clientAppEnhance.{js,ts}`.
165
165
166
166
#### .vuepress/theme/
167
167
@@ -265,7 +265,7 @@ Some major breaking changes:
265
265
266
266
- There is no **conventional theme directory structure** anymore.
267
267
- The file `theme/enhanceApp.js` or `theme/clientAppEnhance.{js,ts}` will not be used as client app enhance file implicitly. You need to specify it explicitly in `clientAppEnhanceFiles` hook.
268
-
- Files in `theme/global-components/` directory will not be registered as Vue components automatically. You need to use `@vuepress/plugin-register-components`, or register components manually in `clientAppEnhance.{js,ts}`.
268
+
- Files in `theme/global-components/` directory will not be registered as Vue components automatically. You need to use [@vuepress/plugin-register-components](../reference/plugin/register-components.md), or register components manually in `clientAppEnhance.{js,ts}`.
269
269
- Files in `theme/layouts/` directory will not be registered as layout components automatically. You need to specify it explicitly in `layouts` option.
270
270
- Files in `theme/templates/` directory will not be used as dev / ssr template automatically.
271
271
- Always provide a theme entry file, and do not use `"main": "layouts/Layout.vue"` as the theme entry.
0 commit comments