Commit 9cbf574e authored by Sparkf's avatar Sparkf 🏙️
Browse files

install plugin for vuepress2

parent 95337b76
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
@@ -73,6 +73,43 @@ module.exports = {
        },
      },
    ],
    [
      '@vuepress/plugin-google-analytics',
      {
        id: 'G-1BQBXDGY3R',
      },
    ],
    '@vuepress/medium-zoom',
    [
      '@vuepress/pwa',
      {
        serviceWorker: true,
      },
      {
      generateSWConfig: {
        importWorkboxFrom: 'local'
      }
    }
      
    ],
    [
      '@vuepress/plugin-pwa-popup',
      {
        locales: {
          '/': {
            message: 'New content is available.',
            buttonText: 'Refresh',
          },
          '/zh/': {
            message: '发现新内容可用',
            buttonText: '刷新',
          },
        },
      },
    ],
    '@vuepress/plugin-nprogress',
    '@vuepress/back-to-top',
    '@vuepress/plugin-git',
    // [
    //   '@vuepress/google-analytics',
    //   {
+7 −2
Original line number Diff line number Diff line
{
  "devDependencies": {
    "@vuepress/plugin-docsearch": "2.0.0-beta.20",
    "@vuepress/plugin-git": "2.0.0-beta.20",
    "@vuepress/plugin-google-analytics": "2.0.0-beta.20",
    "@vuepress/plugin-medium-zoom": "2.0.0-beta.20",
    "@vuepress/plugin-nprogress": "2.0.0-beta.20",
    "@vuepress/plugin-pwa": "2.0.0-beta.20",
    "@vuepress/plugin-pwa-popup": "2.0.0-beta.20",
    "vuepress": "^2.0.0-beta.20"
  },
  "scripts": {
    "docs:dev": "vuepress dev docs",
    "docs:build": "vuepress build docs"
  },
  "dependencies": {
  }
  "dependencies": {}
}
+1511 −11

File changed.

Preview size limit exceeded, changes collapsed.