Skip to content

Commit

Permalink
fix(cli/site): fix build site fail
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
haoziqaq committed Jul 28, 2021
1 parent 96ef860 commit fffbb41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/varlet-cli/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getBuildConfig } from '../config/webpack.build.config'
import { SRC_DIR } from '../shared/constant'

export async function build() {
process.env.NODE_ENV = 'production'
ensureDirSync(SRC_DIR)

const config = getBuildConfig()
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-cli/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function runDevServer(port: number, config: any) {
}

export async function dev() {
process.env.NODE_ENV = 'development'
ensureDirSync(SRC_DIR)

const config = getDevConfig()
Expand Down

0 comments on commit fffbb41

Please sign in to comment.