Skip to content

Commit 7148df2

Browse files
shigmaulivz
authored andcommitted
chore: remove plugin notification (#1394)
1 parent 5bf4d24 commit 7148df2

File tree

9 files changed

+8
-60
lines changed

9 files changed

+8
-60
lines changed

packages/@vuepress/plugin-notification/.npmignore

-2
This file was deleted.

packages/@vuepress/plugin-notification/README.md

-5
This file was deleted.

packages/@vuepress/plugin-notification/enhanceAppFile.js

-9
This file was deleted.

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

-5
This file was deleted.

packages/@vuepress/plugin-notification/index.styl

Whitespace-only changes.

packages/@vuepress/plugin-notification/package.json

-29
This file was deleted.

packages/docs/docs/.vuepress/config.js

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ module.exports = ctx => ({
7070
updatePopup: true
7171
}],
7272
['@vuepress/medium-zoom', true],
73-
['@vuepress/notification', true],
7473
['@vuepress/google-analytics', {
7574
ga: 'UA-128189152-1'
7675
}],
+6-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
export default ({
2-
Vue, // the version of Vue being used in the VuePress app
3-
options, // the options for the root Vue instance
4-
router, // the router instance for the app
5-
siteData // site metadata
6-
}) => {
7-
// ...apply enhancements to the app
1+
export default ({ Vue, isServer }) => {
2+
if (!isServer) {
3+
import('vue-toasted' /* webpackChunkName: "notification" */).then((module) => {
4+
Vue.use(module.default)
5+
})
6+
}
87
}

packages/docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"@vuepress/plugin-google-analytics": "^1.0.0-alpha.42",
2929
"@vuepress/plugin-i18n-ui": "^1.0.0-alpha.42",
3030
"@vuepress/plugin-medium-zoom": "^1.0.0-alpha.42",
31-
"@vuepress/plugin-notification": "^1.0.0-alpha.42",
3231
"@vuepress/plugin-pwa": "^1.0.0-alpha.42",
3332
"@vuepress/theme-vue": "^1.0.0-alpha.42",
3433
"vuepress": "^1.0.0-alpha.42",
35-
"vuepress-plugin-flowchart": "^1.4.2"
34+
"vuepress-plugin-flowchart": "^1.4.2",
35+
"vue-toasted": "^1.1.25"
3636
}
3737
}

0 commit comments

Comments
 (0)