Change name of main.js

I’m building a web app using ionic and want to configure my production build to rename main.js with a timestamp to force users’ browser to always load the latest code. I’ve tried setting the ENV_OUTPUT_JS_FILE_NAME environment variable and using the --outputJsFileName flag in the call to ‘ionic-app-scripts build --prod’ - all to no avail.

Any help would be greatly appreciated!

Old topic but I need to do the same thing.

Does someones know if it’s possible with ionic ?