Reading from constants.js file from HTML in custom node

Hi @ItsDaveTheWave

In your nodes root folder node-red-contrib-cool-node, add a folder resources
you can then call into this folder like so, in your HTML file

<script src="resources/node-red-contrib-cool-node/constants.js"></script>

Loading extra resources in the editor : Node-RED (nodered.org)

2 Likes