Edit red.js file

hello my friends I'm editing a function file red.js button deploy I saw that it has this function but when doing the build it returns to the original state someone has already made this modification.


I'm editing the same in this place, but when I build it, it comes back to the original file.

* options:
* type: "default" - Button with drop-down options - no further customisation available
* type: "simple" - Button without dropdown. Customisations:
* label: the text to display - default: "Deploy"
* icon : the icon to use. Null removes the icon. default: "red/images/deploy-full-o.svg"
function init(options) {
options = options || {};
var type = options.type || "default";

Hi @jhonnsec
Welcome to this forum!

packages/node_modules/@node-red/editor-client/public/red/red.js is the file created when building the Node-RED system. Thus it's the wrong place to do any modifications.

The source of the snipplet you're looking for is located in packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js. If you modify this file, your changes will end up in .../red/red.js.

1 Like