Skip to content

@nx/webpack - Executors

The @nx/webpack plugin provides various executors to help you create and configure webpack projects within your Nx workspace. Below is a complete reference for all available executors and their options.

For an overview of the plugin and setup instructions, see the @nx/webpack introduction.

Serve a SSR application using webpack.

OptionTypeDescriptionDefault
browserTargetstring [required]Target which builds the browser application.
serverTargetstring [required]Target which builds the server application.
browserTargetOptionsobjectAdditional options to pass into the browser build target.{}
portnumberThe port the server application listens on. The executor waits for it to accept connections before reporting the server as ready.4200
serverTargetOptionsobjectAdditional options to pass into the server build target.{}