mquandalle / meteor-stylus

Expressive, dynamic, robust CSS
http://atmospherejs.com/mquandalle/stylus
MIT License
57 stars 9 forks source link

Include contents of css #12

Open sahina opened 9 years ago

sahina commented 9 years ago

How can I set "include css" option of stylus to include contents of css into .style files?

With this package, if I do this:

/client/stylesheets/main.styl
@import "../../public/vendor.css"

The import statement gets compiled to below. I want contents of vendor.css to be in the compiled css file.

/compiled.css
@import "../../public/vendor.css";
mquandalle commented 9 years ago

You can use an absolute path:

// /client/stylesheets/main.styl
@import "/public/vendor.css"
sahina commented 9 years ago

It does not work, I see @import "/public/vendor.css" in the compiled css.

mquandalle commented 9 years ago

Could you provide a minimum clonable reproduction?

sahina commented 9 years ago

I created this simple project: https://github.com/sahina/stylus-issue

The CSS generated: cap