mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-08 21:06:42 +10:00
fix($plugin-pwa): no global-ui-component when updatePopup is disabled (#2041)
This commit is contained in:
@@ -3,7 +3,8 @@ const { logger, fs, path } = require('@vuepress/shared-utils')
|
||||
module.exports = (options, context) => ({
|
||||
ready () {
|
||||
options = Object.assign({
|
||||
serviceWorker: true
|
||||
serviceWorker: true,
|
||||
popupComponent: 'SWUpdatePopup'
|
||||
}, options)
|
||||
},
|
||||
|
||||
@@ -26,7 +27,7 @@ module.exports = (options, context) => ({
|
||||
// { 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'),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user