Shazwazza / ClientDependency

DEPRECATED. A library for managing CSS & JavaScript dependencies and optimization in ASP.Net
139 stars 65 forks source link

ForceProvider with RequiresJsFolder() ? #119

Closed mistyn8 closed 7 years ago

mistyn8 commented 7 years ago

I can't seem to find the equivalent to Html.RequiresJs(new JavascriptFile("/scripts/jquery-ui.min.js") { ForceProvider = "FootRenderer" })

for Html.RequiresJsFolder??

Had a quick look in the source and couldn't see the equivalent of IClientDependencyFile, for a folder or the overloaded method on RequiresJsFolder...

Maybe this isn't supported?

Shazwazza commented 7 years ago

I've added overloads now to both RequiresJsFolder and RequiresCssFolder to have a forceProvider parameter. This is the largest overload of all of them so you'll have to fill in some of the default values.