How to download the latest CSS theme files?

The problem is this: we are trying to implement a version control scheme for our CSS and wherever we access CSS via href (e.g. \ themes \ ssss \ abc.css), we add this link with the build number programmatically (e.g. \ themes \ ssss \ abc. css? 1011), so that with a new build, the client receives the latest css files.

The problem goes on topics. E.g. in App_Themes we created a theme folder called MyTheme; now, wherever this theme is used, we need CSS to replace this theme with the latest build files. How to do it?

+6
source share
2 answers

why don't you create a new theme folder for each build / deployment?

Something similar to \ themes \ ssss-1011 \ abc.css.

+1
source

Add an additional hash to your css url ("#somethingnew"). You can also use tools like SquishIt. It can also minimize css / js files.

0
source

Source: https://habr.com/ru/post/910580/


All Articles