# Migration from 0.x
# Site Config
# ga replaced
GA has been separated into a standalone plugin @vuepress/plugin-google-analytics.
UPGRADE
- 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
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
# Default Theme Config
# .vuepress/override.styl
replaced
Replaced by .vuepress/styles/palette.styl
.
UPGRADE
# .vuepress/style.styl
replaced
Replaced by .vuepress/styles/index.styl
.
UPGRADE
See: Config > index.styl