Skip to content

Commit

Permalink
feat($pwa): alias '@sw-event'
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 7, 2018
1 parent 86c3609 commit 628c330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vuepress/plugin-pwa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module.exports = (options, context) => ({
}, options)
},

alias: {
'@sw-event': path.resolve(__dirname, 'lib/event.js')
},

define () {
const { serviceWorker, updatePopup } = options
const base = context.base || '/'
Expand Down

0 comments on commit 628c330

Please sign in to comment.