How to run main js file with ionic serve


I’ve specified a main js file in package.json:

 "main": "server.js",

Should I be expecting ionic serve to run this by default, or is there something I need to configure for that to happen?


ionic serve will run run this. ionic serve will start a live-reload server specified in the gulp file.


i guess i thought that because it is a node live-reload serve, that it would start the “main” js file on its own. Otherwise, what is the point of that configuration line in packages.json if not to have it ran automagically by node?