开发者

Manually created CSS into LESS

开发者 https://www.devze.com 2023-04-05 14:57 出处:网络
Is there a tool available for converting a manually created CSS file into a nested, well optimized LES开发者_开发知识库S file?Short answer: No. Do it yourself.

Is there a tool available for converting a manually created CSS file into a nested, well optimized LES开发者_开发知识库S file?


Short answer: No. Do it yourself.

Long answer: Your CSS file should compile automatically with LESS. Rename .css to .less, then you can progressively improve your CSS file by adding LESS code. Yes it may be the slow way, but it is a great way to go.


No. Time to roll up your sleeves and re-create whatever css you have into .less files.

If you are building a framework, I highly suggest looking at this, as it contains many variables and mixins that are helpful for .less files.

Keep in mind that while {less} is awesome, you should not use it for deployment. I suggest using your .less files for development only, and compiling them into minified .css files for deployment/production.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号