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?