Stylus or less?

Source: Internet
Author: User

Why don't you say sass?

Because it needs to install Ruby, the general front-end developer doesn't specifically install Ruby. I seem to like nodejs! more.

OK, so how do we make a good choice between stylus and less?

First of all, I am a heavy user of webstorm, so my considerations will be based on Webstorm:

1. Convenient and quick

Stylus, a lot of curly braces, colons, quotes and so on stylus inside are not necessary

2. Post-compilation CSS

Because stylus really introduces the concept of inheritance, so stylus compiled CSS will be more consistent with the CSS itself inheritance relationship

Files are less likely to be smaller.

3. Combined with Webstorm

All in webstorm to add file monitoring to them for real-time compilation.

Then I found:

Stylus compile when you make a change to the output path of the CSS (arguments is set to $filename$-O: /CSS),

Here is the stylus file compiled into the top level called CSS directory inside. Then his compiler output was slow.

A.styl import B.styl, if B is modified a will not recompile

So that's why we can't update our view in real time when using Live Editor technology!

Stylus is a new technology that is cooler and more node but less mature. So for the time being, we should choose less.

Stylus or less?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.