Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修正错误的 webpack mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed May 16, 2020
1 parent b79c44f commit f46dd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remax-cli/src/build/webpack/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function baseConfig(config: Config, options: Options, target: Pla
.end()
.extensions.merge(['.js', '.ts']);

config.mode((process.env.NODE_ENV as any) || 'development');
config.mode((process.env.NODE_ENV as any) === 'production' ? 'production' : 'development');

config.context(options.cwd);

Expand Down

0 comments on commit f46dd92

Please sign in to comment.