stylus / stylus

Expressive, robust, feature-rich CSS language built for nodejs
https://stylus-lang.com
MIT License
11.2k stars 1.12k forks source link

--include-css by default #1270

Open corysimmons opened 10 years ago

corysimmons commented 10 years ago

Why is it that I have to run --include-css with stylus -w explicitly?

According to http://learnboost.github.io/stylus/docs/import.html it seems like you should be able to do something like...

@import 'fonts.css'

..from within style.styl, and be watching style.styl (which is in the same dir as fonts.css), and fonts.css to be imported... without having to explicitly say --include-css.

Such weird behavior...

Panya commented 10 years ago

According to http://learnboost.github.io/stylus/docs/import.html

Literal CSS Any filename with the extension .css will become a literal.

@import "fonts.css"

without --include-css compiles literally to:

@import "fonts.css";

Nothing wrong with docs here.

corysimmons commented 10 years ago

So what is --include-css doing exactly? Every single time I go to use non-Stylus .css in my projects I'm always banging my head against the wall trying to figure out why it isn't working. Maybe --include-css should be the default behavior since everything works as I'd expect when I watch with it enabled?

Grafomap commented 4 years ago

Why this is still Open?

--include-css should be true by default. :)