Migration from 0.x
Site Config
replaced
gaGA has been separated into a standalone plugin @vuepress/plugin-google-analytics.
Upgrade Path
- Install
@vuepress/plugin-google-analytics
:
yarn add -D @vuepress/plugin-google-analytics@next
# OR npm install -D @vuepress/plugin-google-analytics@next
- Update
vuepress/config.js
:
module.exports = {
- ga: 'UA-12345678-9'
+ plugins: [
+ ['@vuepress/google-analytics', {
+ ga: 'UA-12345678-9'
+ }]
+ ]
}
renamed
markdown.configUsing extendMarkdown
:。
Upgrade Path
Update vuepress/config.js
:
// vuepress/config.js
module.exports = {
- markdown: {
- config(md) { /* ... */ }
- },
+ extendMarkdown(md) { /* ... */ }
}
replaced
serviceWorkerService Worker related features have been separated into a standalone plugin @vuepress/plugin-pwa.
Upgrade Path
Default Theme Config
.vuepress/override.styl
replaced
Replaced by .vuepress/styles/palette.styl
.
Upgrade Path
.vuepress/style.styl
replaced
Replaced by .vuepress/styles/index.styl
.
Upgrade Path
See: Config > index.styl