title | description |
---|---|
@nrwl/node:webpack executor |
Build a Node application using webpack |
Build a Node application using webpack
Options can be configured in workspace.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Type: string
The name of the main entry-point file.
Type: string
The name of the Typescript configuration file.
Type: object[]
Type: string
Name of the additional entry file
Type: string
Path to the additional entry file
Type: array
List of static application assets.
Default: true
Type: boolean
Read buildable libraries from source instead of building them separately.
Default: all
Type: string | string[]
Dependencies to keep external to the bundle. ("all" (default), "none", or an array of module names)
Default: false
Type: boolean
Extract all licenses in a separate file, in the case of production builds only.
Type: object[]
Replace files with other files in the build.
Type: string
The file to be replaced.
Type: string
The file to replace with.
Default: false
Type: boolean
Generates a package.json file with the project's node_module dependencies populated for installing in a container. If a package.json exists in the project's directory, it will be reused with dependencies populated.
Type: number
Number of workers to use for type checking. (defaults to # of CPUS - 2)
Type: number
Memory limit for type checking service process in MB. (defaults to 2048)
Default: false
Type: boolean
Defines the optimization level of the build.
Default: main.js
Type: string
Name of the main output file. (defaults to 'main.js')
Type: string
The output path of the generated files.
Type: number
Frequency of file watcher in ms.
Default: false
Type: boolean
Log progress to the console while building.
Default: true
Type: boolean
Produce source maps.
Default: false
Type: boolean
Generates a 'stats.json' file which can be analyzed using tools such as: 'webpack-bundle-analyzer' or https://webpack.github.io/analyse.
Alias(es): tsPlugins
Type: array
List of TypeScript Compiler Transfomers Plugins.
Default: false
Type: boolean
Emits verbose output
Default: false
Type: boolean
Run build when files change.
Type: array[] | string
Path to a function which takes a webpack config, context and returns the resulting webpack config