I'm developing an ASP.NET MVC application using dotless and bundling.
When my CSS is optimised I get a link
such as:
<link href="/bundles/global.css?v=xxxxx" rel="stylesheet"/>
However, when optimisation is disabled I get:
<link href="/css/header.less" rel="stylesheet"/>
<link href="/css/content.less" rel="stylesheet"/>
<link href="/css/footer.less" rel="stylesheet"/>
In Chrome these less
files are read just fine.
However, is it common practice to use .less
files directly as stylesheets?
I'm concerned that some browsers might not recognise the stylesheets as they don't end in .css
and therefore will ignore them.
UPDATE: For clarification, the .less
files are pre-compiled server side and therefore are valid CSS files. No client-side processing is happening.