From eb4c2d92f9bcde4c777ec062a3f4b7da1c174466 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Mon, 10 Apr 2023 15:12:01 +0800 Subject: [PATCH] docs: pages --- docs/.vuepress/config.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index b3cc2520..299fc3a0 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -7,7 +7,7 @@ import { backToTopPlugin } from '@vuepress/plugin-back-to-top' import { navbar, sidebar } from './configs'; export default defineUserConfig({ - base: '/', + base: process.env.BASE ? `/${process.env.BASE}/` : '/', head: [ ['link', { rel: 'manifest', href: '/manifest.webmanifest' }], diff --git a/package.json b/package.json index 391fcb39..3e6f4a5e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "clean": "rm -rf ./node_modules & rm -rf packages/**/node_modules & rm -rf packages/**/.cache", "docs:dev": "vuepress dev docs --clean-cache", "docs:build": "vuepress build docs --clean-cache", - "docs:build-pages": "BASE=/fes.js/ vuepress build docs --clean-cache", + "docs:build-pages": "BASE=fes.js vuepress build docs --clean-cache", "test": "fes test", "lint": "eslint -c ./.eslintrc.js --ignore-pattern='templates' --ext .js,.jsx,.vue,.ts", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"