forum

Home / DeveloperSection / Forums / What is CSS Bundles with Controller Route Source

What is CSS Bundles with Controller Route Source

Anonymous User 2146 14-Nov-2014

I created a controller path to return a css file, which works, and returns Response.ContentType = "text/css".

Now I'm trying to put that URL in my bundles file, like this:

bundles.Add(new StyleBundle("~/Content/custom").Include(
  "~/CSS/Custom/1"
));

NOTE: /CSS/Custom/1 is a route that returns a text/css file.

In my view I have:

@Styles.Render("~/Content/custom")

When I build the project, the bundler returns this in my HTML:

<link href="/Content/custom?v=" rel="stylesheet"/>

When I view the files source, It's empty.

How do I get this to work?


Updated on 15-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By