Migration from 0.x
Site Config
ga replaced
GA 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'
+ }]
+ ]
}
markdown.config renamed
Using extendMarkdown
:。
Upgrade Path
Update vuepress/config.js
:
// vuepress/config.js
module.exports = {
- markdown: {
- config(md) { /* ... */ }
- },
+ extendMarkdown(md) { /* ... */ }
}
serviceWorker replaced
Service Worker related features have been separated into a standalone plugin @vuepress/plugin-pwa.
Upgrade Path
See: @vuepress/plugin-pwa > Migration from 0.x
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