NX dev-server to support Vite plugins and middleware #22579
henk-badenhorst
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We want to use the Builders offered by NX, specifically the dev-server with Vite. However, we have to add additional Vite plugins and middleware but this is not supported by the dev-server builder offered by NX. The dev-server builder offered by Angular does support this.
When we import the
executeDevServerBuilder
from NX we want to pass it plugins and middleware. When calling theexecuteDevServerBuilder
from Angular we are able to pass in plugins and middleware. Below are the two methods and as you can see Angular has 2 additional parameters which allows you to add Middleware and Plugins.Angular implementation of
executeDevServerBuilder
methodNX implementation of
executeDevServerBuilder
method.Additionally to the feature request will it be possible to expose the
executeDevServerBuilder
so we do not need to do a deep import in our code?Beta Was this translation helpful? Give feedback.
All reactions