I'm trying to write a little utility script that doesn't need to be run in the engine, but I need to use require('fs') so I can save the results. Just can't seem to get it working.
I know node.js is a part of the MV framework, but I can't see any reference to it being required/used in either the MV files or in my project files, so I can't follow how it knows to use it when I run index.html
I've even installed node.js and npm separately and I still can't get it to work.
What's the trick? Do I need to add something specific to my html file, to my js file, do I need to put the project in a particular folder? The utility runs by opening the html file, which then calls the script. I do NOT want to run it from within node itself.
I know node.js is a part of the MV framework, but I can't see any reference to it being required/used in either the MV files or in my project files, so I can't follow how it knows to use it when I run index.html
I've even installed node.js and npm separately and I still can't get it to work.
What's the trick? Do I need to add something specific to my html file, to my js file, do I need to put the project in a particular folder? The utility runs by opening the html file, which then calls the script. I do NOT want to run it from within node itself.
