Shazwazza / ClientDependency

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

how can I render css Inline #200

Closed ebadola closed 3 years ago

ebadola commented 3 years ago

I need Render CSS on the head section like this

<style amp-custom>
   @Html.RenderInlineCssHere()
</style>

I want to combine all CSS and get minified CSS in put inside style tag how can I do that

Shazwazza commented 3 years ago

See https://github.com/Shazwazza/ClientDependency/wiki#rendering-cssjavascript-in-your-page

To render CSS is just:

@Html.RenderCssHere()
ebadola commented 3 years ago

this render link <link href="....css?cdv=1632393341" type="text/css" rel="stylesheet"/>

but I wand all content of CSS file, inside of style tag

<style>
      all CSS goes here 
</style>
Shazwazza commented 3 years ago

Hi sorry I misunderstood. That is not a feature of this library.