@nrwl/node:webpack
Node application build target options for Build Facade.
Options can be configured in project.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.
Options
buildLibsFromSource
trueRead buildable libraries from source instead of building them separately.
externalDependencies
allDependencies to keep external to the bundle. (all (default), none, or an array of module names)
extractLicenses
falseExtract all licenses in a separate file, in the case of production builds only.
generatePackageJson
falseGenerates 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.
main
The name of the main entry-point file.
maxWorkers
Number of workers to use for type checking. (defaults to # of CPUS)
memoryLimit
2048Memory limit for type checking service process in MB. (defaults to 2048)
outputPath
The output path of the generated files.
optimization
falseDefines the optimization level of the build.
outputFileName
main.jsName of the main output file. (defaults to main.js)
poll
Frequency of file watcher in ms.
progress
falseLog progress to the console while building.
sourceMap
trueProduce source maps.
statsJson
falseGenerates a stats.json file which can be analyzed using tools such as: webpack-bundle-analyzer or <https://webpack.github.io/analyse>.
tsConfig
The name of the Typescript configuration file.
verbose
falseEmits verbose output
watch
falseRun build when files change.
webpackConfig
Path to a function which takes a webpack config, context and returns the resulting webpack config.