Custom build-templates parameters


When I create e.g. [project_root]/build-templates/web-mobile/index.html and use the default index.html file that contains <title><%=project%></title> and many other parameters that automatically will be filled in in the build process. Same applies for main.js containing these parameters.

How can I get them to work while having my custom build-template?

Can I somehow create custom properties for the build (e.g. environment variables) or how can you apply environment variables for builds?

Can I affect the Cocos Creator development environment template somehow the same way?

I would really appreciate any help I can get on this one. Thank you! :slight_smile:


If any developer or other person knows anything about this it would be nice to know. A “No it doesn’t work” answer is also good and would save time to not have to put in the time for research.
Thanks a lot for your help!