We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e6c5f commit 26ab8fcCopy full SHA for 26ab8fc
packages/docs/docs/.vuepress/config.js
@@ -1,6 +1,6 @@
1
const path = require('path')
2
3
-module.exports = {
+module.exports = ctx => ({
4
dest: '../../vuepress',
5
locales: {
6
'/': {
@@ -62,7 +62,7 @@ module.exports = {
62
}
63
},
64
plugins: {
65
- '@vuepress/i18n-ui': true,
+ '@vuepress/i18n-ui': !ctx.isProd,
66
'@vuepress/back-to-top': true,
67
'@vuepress/pwa': {
68
serviceWorker: true,
@@ -76,7 +76,7 @@ module.exports = {
76
77
78
clientRootMixin: path.resolve(__dirname, 'mixin.js')
79
-}
+})
80
81
function getGuideSidebar (gruopA, groupB) {
82
return [
0 commit comments