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.jsonTIP
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:1880Root
Object containing the following properties:
| Property | Type |
|---|---|
builder (*) | Builder |
watcher (*) | Watcher |
(*) Required.
Builder
Object containing the following properties:
| Property | Type |
|---|---|
outputDir (*) | string |
esbuildControllerOptions (*) | Object with properties:
|
tailwind (*) | Object with properties:
|
(*) Required.
Watcher
Object containing the following properties:
| Property | Type |
|---|---|
nodeRed (*) | Object with properties:
|
(*) Required.