feat: the pake debug option should support build a debug application

This commit is contained in:
jeasonnow
2023-06-27 18:32:05 +08:00
parent 03d7a2c7ff
commit c37db9a918
2 changed files with 3 additions and 1 deletions

View File

@@ -98,7 +98,8 @@ export default abstract class BaseBuilder {
abstract getFileName(): string;
protected getBuildCommand(): string {
return 'npm run build';
// the debug option should support `--debug` and `--release`
return this.options.debug ? 'npm run build:debug' : 'npm run build';
}
protected getBasePath(): string {