Unverified Commit 1da0132e authored by liziwl's avatar liziwl Committed by GitHub
Browse files

Merge pull request #182 from SUSTech-CRA/fix/update-1116

update dependency
parents fd4a5d7f 90ebca2d
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
export default function ProcessExitPlugin() {
    return {
      name: 'ProcessExitPlugin',
  
      // catch the end of a build with errors
      buildEnd(error?: Error) {
        if (error) {
          console.error('Build failed:', error)
          process.exit(1)
        } else {
          console.log('Build succeeded')
        }
      },
  
      // catch the end of a build without errors
      closeBundle() {
        console.log('Build finished')
        process.exit(0)
      },
    }
  }
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -2,11 +2,11 @@ import { defaultTheme } from '@vuepress/theme-default'
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
// import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import { pwaPlugin } from '@vuepress/plugin-pwa'
// import { pwaPopupPlugin } from '@vuepress/plugin-pwa-popup'
import { tocPlugin } from '@vuepress/plugin-toc'
import { sitemapPlugin } from "@vuepress/plugin-sitemap"
import { defineUserConfig } from '@vuepress/cli'
import { viteBundler } from '@vuepress/bundler-vite'
import ProcessExitPlugin from './components/vite-plugin-vue-process-exit'

const ogprefix = 'og: http://ogp.me/ns#'
const title = '南科手册'
@@ -198,6 +198,7 @@ export default defineUserConfig({
            hostname: "https://sustech.online/",
        }),
        tocPlugin(),
        ProcessExitPlugin(),
    ],
    theme: defaultTheme({
        navbar: [
+6 −6
Original line number Diff line number Diff line
@@ -8,12 +8,12 @@
    "@vuepress/plugin-medium-zoom": "next",
    "@vuepress/plugin-nprogress": "next",
    "@vuepress/plugin-pwa": "next",
    "@vuepress/plugin-pwa-popup": "next",
    "@vuepress/plugin-register-components": "next",
    "@vuepress/plugin-sitemap": "next",
    "@vuepress/plugin-toc": "next",
    "@vuepress/theme-default": "next",
    "ant-design-vue": "^4.2.3",
    "ant-design-vue": "^4.2.6",
    "sass-embedded": "^1.81.0",
    "vue-echarts": "~6.2.4",
    "vuepress": "next"
  },
@@ -24,11 +24,11 @@
    "docs:clean": "rm -rf docs/.vuepress/.cache docs/.vuepress/.temp docs/.vuepress/dist"
  },
  "dependencies": {
    "@turf/turf": "^7.0.0",
    "axios": "^1.7.4",
    "@turf/turf": "^7.1.0",
    "axios": "^1.7.7",
    "download": "^8.0.0",
    "echarts": "^5.5.1",
    "maplibre-gl": "^4.5.0",
    "vue": "^3.4.32"
    "maplibre-gl": "^4.7.1",
    "vue": "^3.5.13"
  }
}
+3217 −3305

File changed.

Preview size limit exceeded, changes collapsed.