Commit d297df05 authored by liziwl's avatar liziwl
Browse files

update

parent fd4a5d7f
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 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ 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 +199,7 @@ export default defineUserConfig({
            hostname: "https://sustech.online/",
        }),
        tocPlugin(),
        ProcessExitPlugin(),
    ],
    theme: defaultTheme({
        navbar: [
+5 −5
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
    "@vuepress/plugin-sitemap": "next",
    "@vuepress/plugin-toc": "next",
    "@vuepress/theme-default": "next",
    "ant-design-vue": "^4.2.3",
    "ant-design-vue": "^4.2.6",
    "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"
  }
}
+2936 −3266

File changed.

Preview size limit exceeded, changes collapsed.