1.0.19
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/")