I would like to switch to SystemJS from requirejs, however I cannot find a solution, since requirejs have module version control. For example, in production (ASP.Net website), I installed RequireJS as follows:
require.config({ baseUrl: "@Url.Content("~/Scripts/")", urlArgs: "buildNumber=@(File.GetLastWriteTime(ViewContext.Controller.GetType().Assembly.Location).ToBinary().ToString() + typeof(Foundation.MvcApplication).Assembly.GetName().Version)", ... });
This ensures that the file will be reloaded after the project is re-released in the production environment and will be stored until it is reloaded.
However, I did not find a solution for SystemJS for this (As SystemJS manages more types of modules, I would like to switch to it).
Has anyone used SystemJS in production and had the same problem, do you know the urlArgs parameter (or plugin) in SystemJS?
caching requirejs amd systemjs
Micaël félix
source share