Static Site 下设置 base 与publicPath不生效 #2223
Unanswered
TaiyiAccount
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Static Site 下设置 base 与publicPath不生效
"dumi": "^2.4.13"
node: v20.10.0
/.dumiirc.ts 如下:
import { defineConfig } from 'dumi';
const isProd = process.env.NODE_ENV === 'production';
export default defineConfig({
themeConfig: {
name: '',
logo: '/img/[email protected]',
mfsu: isProd ? false : {},
base: isProd ? '/rp/doc' : '/',
publicPath: isProd ? '/rp/doc' : '/',
runtimePublicPath: isProd ? {} : false,
},
});
打包出来不生效:
搞了半天了,也不知道为什么。。。。,求大神拯救
Beta Was this translation helpful? Give feedback.
All reactions