Skip to content

1.0.7

Compare
Choose a tag to compare
@stefanprodan stefanprodan released this 16 Oct 16:08
· 267 commits to master since this release
New in RequireJS.NET v1.0.7

RenderRequireJsSetup accepts multiple config files, merges all paths and shims, will throw error if duplicates are found.

Using this feature, you can create a shared config, and for each MVC area a different file, inside the layout file for each area you can merge the dedicated config with the shared one.

@Html.RenderRequireJsSetup(Url.Content("~/Scripts"),
    Url.Content("~/Scripts/require.js"),
    new List<string>
    {
        Server.MapPath("~/RequireJS.shared.config"),
        Server.MapPath("~/RequireJS.config")
    })