提交 6f9e478e 编写于 作者: M meteorlxy 提交者: ULIVZ

fix($plugin-pwa): no global-ui-component when updatePopup is disabled (#2041)

上级 7f2a9975
...@@ -3,7 +3,8 @@ const { logger, fs, path } = require('@vuepress/shared-utils') ...@@ -3,7 +3,8 @@ const { logger, fs, path } = require('@vuepress/shared-utils')
module.exports = (options, context) => ({ module.exports = (options, context) => ({
ready () { ready () {
options = Object.assign({ options = Object.assign({
serviceWorker: true serviceWorker: true,
popupComponent: 'SWUpdatePopup'
}, options) }, options)
}, },
...@@ -26,7 +27,7 @@ module.exports = (options, context) => ({ ...@@ -26,7 +27,7 @@ module.exports = (options, context) => ({
// { name: 'SWUpdatePopup', path: path.resolve(__dirname, 'lib/SWUpdatePopup.vue') } // { name: 'SWUpdatePopup', path: path.resolve(__dirname, 'lib/SWUpdatePopup.vue') }
// ], // ],
globalUIComponents: options.popupComponent || 'SWUpdatePopup', globalUIComponents: options.updatePopup ? options.popupComponent : undefined,
enhanceAppFiles: path.resolve(__dirname, 'lib/enhanceAppFile.js'), enhanceAppFiles: path.resolve(__dirname, 'lib/enhanceAppFile.js'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册