0

I've seen this on a site:

<link rel="stylesheet" href="http://blablas.com/built/assets-styles.css?v=12355" />

which need to be underlined assets-styles.css?v=12355"

How to compile css file as above?

is it possible with less or sass?

[update]

And How about this?

<link rel="stylesheet" href="https://blablas.com/built/assets-201501-35b4b2bf0e75bb40f98d111b2d97951d.css">
1

2 Answers 2

0

CSS files are not to be compiled. The reason the URI parameter is there could be it is not really a CSS file that's called, but a PHP engine (with mod_rewrite) that returns a CSS file based on the given parameter.

Another reason to use parameters is to force web browser to fetch the stylesheet again when necessary.

Sign up to request clarification or add additional context in comments.

Comments

0

That has nothing todo with Compiling CSS! You use it for Cache Control. Everytime the CSS File gets changed they just need to change the numer and the new version gets requested.

In the 1st Link you posted ist a GET Variable therefore ist more likely to be vor some inernal Processing

7 Comments

oke, how about this? <link rel="stylesheet" href="blablas.com/built/…" >
There is no way to compile CSS
how i can generate numeric like = assets-201501-35b4b2bf0e75bb40f98d111b2d97951d.css
Why doyou need to do so?
before, why people use that numeric for css link? sorry i'm newbie.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.