Skip to content

Commit

Permalink
docs: update dumi config
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed May 20, 2023
1 parent 833e64a commit 77e5d74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';

const isProdSite =
// 不是预览模式 同时是生产环境
process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';

const name = 'cssinjs';

export default defineConfig({
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
Expand All @@ -9,4 +15,6 @@ export default defineConfig({
},
outputPath: '.doc',
exportStatic: {},
base: isProdSite ? `/${name}/` : '/',
publicPath: isProdSite ? `/${name}/` : '/',
});

0 comments on commit 77e5d74

Please sign in to comment.