Extend dev-server to be usable without webpack target #22634
Replies: 5 comments
-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
Beta Was this translation helpful? Give feedback.
-
We've changed the way our webpack targets work to execute the webpack config directly. This means that the webpack config also contains all the actual information needed by both build and serve. Does this fix this issue? In what cases are you trying to invoke the |
Beta Was this translation helpful? Give feedback.
-
Description
@nrwl/web:dev-server
'sdevServerExecutor
is tightly coupled to@nrwl/web:webpack
's options inproject.json
which means thatdevServerExecutor
can not be used programmatically. I propose addingoverrideTargetOptions
(WebWebpackExecutorOptions
) option.Motivation
This would allow for
devServerExecutor
to be called with independent set of webpack executor's options. This is needed for those that use build target with custom executor that does not use options which are required for dev-server.Suggested Implementation
Add
overrideTargetOptions
option in interface and schema of dev-server. UpdategetBuildOptions
that ifoverrideTargetOptions
is provided target's options are ignored.This change would not affect current behaviour but would add more flexibility to dev-server executor.
Beta Was this translation helpful? Give feedback.
All reactions