Skip to content

1.0.19

Compare
Choose a tag to compare
@stefanprodan stefanprodan released this 15 Mar 09:35
· 229 commits to master since this release
New in RequireJS.NET v1.0.19
  • Added optional parameter entryPointRoot to RenderRequireJsSetup methods

You can use entryPointRoot to override the default "~/Scripts/" root of js controllers:

Scripts/
    ├── Components/
    ├── Plugins/
    └── Widgets/
MyApp/
    └── Controllers/
        ├── Root/
        ├── Admin/
        └── Common/

Setup:

@Html.RenderRequireJsSetup(
    baseUrl: Url.Content("~/Scripts/"),
    requireUrl: Url.Content("~/Scripts/Components/require.js"),
    urlArgs: MvcRenders.RenderAppVersion(),
    configPath: Server.MapPath("~/RequireJS.release.config"),
    entryPointRoot: "~/MyApp/")