Skip to content

Commit 628c330

Browse files
committed
feat($pwa): alias '@sw-event'
1 parent 86c3609 commit 628c330

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@vuepress/plugin-pwa/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module.exports = (options, context) => ({
77
}, options)
88
},
99

10+
alias: {
11+
'@sw-event': path.resolve(__dirname, 'lib/event.js')
12+
},
13+
1014
define () {
1115
const { serviceWorker, updatePopup } = options
1216
const base = context.base || '/'

0 commit comments

Comments
 (0)