We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833e64a commit 77e5d74Copy full SHA for 77e5d74
.dumirc.ts
@@ -1,6 +1,12 @@
1
// more config: https://d.umijs.org/config
2
import { defineConfig } from 'dumi';
3
4
+const isProdSite =
5
+ // 不是预览模式 同时是生产环境
6
+ process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
7
+
8
+const name = 'cssinjs';
9
10
export default defineConfig({
11
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
12
themeConfig: {
@@ -9,4 +15,6 @@ export default defineConfig({
15
},
16
outputPath: '.doc',
17
exportStatic: {},
18
+ base: isProdSite ? `/${name}/` : '/',
19
+ publicPath: isProdSite ? `/${name}/` : '/',
20
});
0 commit comments