From 628c3301bf6c804b00911f82028250e74357dd7d Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Thu, 8 Nov 2018 03:23:37 +0800 Subject: [PATCH] feat($pwa): alias '@sw-event' --- packages/@vuepress/plugin-pwa/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/@vuepress/plugin-pwa/index.js b/packages/@vuepress/plugin-pwa/index.js index 362481dce1..451fd60175 100644 --- a/packages/@vuepress/plugin-pwa/index.js +++ b/packages/@vuepress/plugin-pwa/index.js @@ -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 || '/'