Skip to content

Configuration file

You can add a configuration file to your project to specify the settings for the project.

The configuration file is a JSON file named .node-red-dxprc.json and should be placed in the root of the project.

sh
├── src/
├── .node-red-dxprc.{json,yaml}
└── package.json

TIP

You can also use another format like .node-red-dxprc.js or .node-red-dxprc.yaml. Behind the scenes, the package uses cosmiconfig to load the configuration file.

Here is the type of available values:

Default configuration / Example

yaml
builder:
  outputDir: dist
  esbuildControllerOptions:
    includeInBundle: []
  tailwind:
    forcedClassesInclusion: []
watcher:
  nodeRed:
    enabled: true
    path: ~/.node-red
    url: http://localhost:1880

Root

Object containing the following properties:

PropertyType
builder (*)Builder
watcher (*)Watcher

(*) Required.

Builder

Object containing the following properties:

PropertyType
outputDir (*)string
esbuildControllerOptions (*)Object with properties:
  • includeInBundle (*): Array<string>
tailwind (*)Object with properties:
  • forcedClassesInclusion (*): Array<string>

(*) Required.

Watcher

Object containing the following properties:

PropertyType
nodeRed (*)Object with properties:
  • enabled (*): boolean
  • path (*): string
  • url (*): string (url)

(*) Required.

Version v1.28.3 - Built on 2026-01-27