File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'dumi' ;
2
2
import path from 'path' ;
3
3
4
- const isProdSite =
5
- // 不是预览模式 同时是生产环境
6
- process . env . PREVIEW !== 'true' && process . env . NODE_ENV === 'production' ;
4
+ // const isProdSite =
5
+ // // 不是预览模式 同时是生产环境
6
+ // process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
7
7
8
- const name = 'tooltip' ;
8
+ // const name = 'tooltip';
9
9
10
10
export default defineConfig ( {
11
11
alias : {
@@ -18,6 +18,6 @@ export default defineConfig({
18
18
name : 'Tooltip' ,
19
19
logo : 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' ,
20
20
} ,
21
- base : isProdSite ? `/${ name } /` : '/' ,
22
- publicPath : isProdSite ? `/${ name } /` : '/' ,
21
+ // base: isProdSite ? `/${name}/` : '/',
22
+ // publicPath: isProdSite ? `/${name}/` : '/',
23
23
} ) ;
You can’t perform that action at this time.
0 commit comments