Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed May 22, 2024
1 parent 57a299d commit e03aa91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/preset-umi/src/commands/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { DEFAULT_OUTPUT_PATH } from '@umijs/bundler-webpack';
import type { IServicePluginAPI } from '@umijs/core';
import { getMarkup } from '@umijs/server';
import { chalk, fsExtra, logger, rimraf, semver } from '@umijs/utils';
Expand Down Expand Up @@ -106,7 +105,7 @@ umi build --clean
runtime: shouldUseAutomaticRuntime ? 'automatic' : 'classic',
},
config: {
outputPath: DEFAULT_OUTPUT_PATH,
outputPath: api.userConfig.outputPath || 'dist',
...api.config,
} as IServicePluginAPI['config'],
cwd: api.cwd,
Expand Down
3 changes: 1 addition & 2 deletions packages/preset-umi/src/commands/dev/dev.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { RequestHandler } from '@umijs/bundler-webpack';
import { DEFAULT_OUTPUT_PATH } from '@umijs/bundler-webpack';
import {
address,
chalk,
Expand Down Expand Up @@ -357,7 +356,7 @@ PORT=8888 umi dev
runtime: shouldUseAutomaticRuntime ? 'automatic' : 'classic',
},
config: {
outputPath: DEFAULT_OUTPUT_PATH,
outputPath: api.userConfig.outputPath || 'dist',
...api.config,
},
pkg: api.pkg,
Expand Down

0 comments on commit e03aa91

Please sign in to comment.