Skip to content

Commit 26ab8fc

Browse files
committed
chore: only enable i18n-ui in dev mode
1 parent e4e6c5f commit 26ab8fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/docs/docs/.vuepress/config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22

3-
module.exports = {
3+
module.exports = ctx => ({
44
dest: '../../vuepress',
55
locales: {
66
'/': {
@@ -62,7 +62,7 @@ module.exports = {
6262
}
6363
},
6464
plugins: {
65-
'@vuepress/i18n-ui': true,
65+
'@vuepress/i18n-ui': !ctx.isProd,
6666
'@vuepress/back-to-top': true,
6767
'@vuepress/pwa': {
6868
serviceWorker: true,
@@ -76,7 +76,7 @@ module.exports = {
7676
}
7777
},
7878
clientRootMixin: path.resolve(__dirname, 'mixin.js')
79-
}
79+
})
8080

8181
function getGuideSidebar (gruopA, groupB) {
8282
return [

0 commit comments

Comments
 (0)