Skip to content

Commit

Permalink
fix(react): pass configuration from context when reading build target…
Browse files Browse the repository at this point in the history
… options

Closes #7924
  • Loading branch information
jaysoo authored and Jack Hsu committed Apr 1, 2022
1 parent 43eee23 commit 176a8dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web/src/executors/dev-server/dev-server.impl.ts
Expand Up @@ -107,7 +107,9 @@ function getBuildOptions(
options: WebDevServerOptions,
context: ExecutorContext
): WebWebpackExecutorOptions {
const target = parseTargetString(options.buildTarget);
const target = parseTargetString(
`${options.buildTarget}:${context.configurationName}`
);
const overrides: Partial<WebWebpackExecutorOptions> = {
watch: false,
};
Expand Down

0 comments on commit 176a8dd

Please sign in to comment.