Creating ClientDependency bundles, where do I create them?
Seems like a simple thing, and I'm hoping it's possible within Umbraco (I can't see why not).
In what event do I create ClientDependency (https://github.com/Shazwazza/ClientDependency/wiki) bundles.
On a standard .net site, it would be under Application_Start, no joy there as I believe Umbraco just uses its' own OnApplicationStarting/OnApplicationInitialized/OnApplicationStarted events.
I have tried within each of these, but I get nothing rendering when I call
@{Html.RequiresCssBundle("MyControl");}
Has someone else done this, what could I be missing?
Is this something you have used before? I have always used ClientDependency, but not had the requirement for bundles within it as yet. Does this mean it's not possible to use the ClientDependency bundles within Umbraco, or is it just a case of you know Optimus can?
Thanks for the link, I might well go with that if I know the ClientDependency just won't do what I want.
I've not used in anger... but my understanding is that it's just an abstraction layer over clientdependancy, allowing you to manage in the umbraco admin, rather that doing the coding yourself to create bundles.
Creating ClientDependency bundles, where do I create them?
Seems like a simple thing, and I'm hoping it's possible within Umbraco (I can't see why not).
In what event do I create ClientDependency (https://github.com/Shazwazza/ClientDependency/wiki) bundles.
On a standard .net site, it would be under Application_Start, no joy there as I believe Umbraco just uses its' own OnApplicationStarting/OnApplicationInitialized/OnApplicationStarted events.
I have tried within each of these, but I get nothing rendering when I call
Has someone else done this, what could I be missing?
Thanks in advance..
Mark
Perhaps this might be useful?
https://our.umbraco.org/projects/developer-tools/optimus/
or
(https://our.umbraco.org/projects/developer-tools/optimus-lite/)
Hi Mike,
Is this something you have used before? I have always used ClientDependency, but not had the requirement for bundles within it as yet. Does this mean it's not possible to use the ClientDependency bundles within Umbraco, or is it just a case of you know Optimus can?
Thanks for the link, I might well go with that if I know the ClientDependency just won't do what I want.
I've not used in anger... but my understanding is that it's just an abstraction layer over clientdependancy, allowing you to manage in the umbraco admin, rather that doing the coding yourself to create bundles.
Found this other forum post re bundels and OnApplicationStarted https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/49056-Bundles
perhaps you could post your code? (are you doing in app_code for JIT or a custom assembly?)
is working on a reply...