NOTE: This article applies to InstantForum 2013 or above. Earlier versions of InstantForum use dynamic run-time script bundling and minification. We moved to compile time script bundling and minification in newer version to ensure lower overhead at run-time.
What is core.js
How minification and bundling works
How is core.js generated?
The "core.js" file will only be automatically generated from the various debug files if core.js does not already exists within the InstantForum "js" folder and the "InstantASP_DebugMode" application setting within the web.config is set to true...
<add key="InstantASP_DebugMode" value="true"/>
To re-create core.js you will first need to delete core.js from within the "js" folder. Once you've removed core.js you will need to ensure the InstantASP_DebugMode application setting within the web.config is set to "true". Then simply visit your InstantForum installation in a web browser and InstantForum will automatically generate the core.js file from the various -debug files.
The minification & bundling occurs within the Application_OnStart event. If you don't see core.js being automatically generated you may need to recycle the web application within IIS or make a small change to the web.config file to force the application to recycle which will cause the "Application_OnStart" even to fire.
The core.js file does not appear?
Once you loaded any InstantForum page after deleting core.js and setting InstantASP_DebugMode to true you should see InstantForum will automatically generate the core.js file from your various debug files.
If InstantForum can't generate the core.js file due to insufficient file permissions you will receive an exception at run-time indicating which user does not have access to create the core.js file. In this instance simply give this user write and modify access to your InstantForum "Skins/Styles" folder.
Ensuring core.js is loaded
To actually use the rebuilt core.js within your InstantForum pages after you've made changes to the debug JS and rebuilt the core.js file you will need to set the InstantASP_DebugMode application setting within the web.config to "false".