With this plugin, Polvo can handle CSS source files.
You won't need to install it since it comes built in in Polvo.
Enjoy.
Just put your .css files in your input or aliased dirs and it will be
ready for use.
This plugin comes with partials support as well. It is, you can split big file into multiple pieces and tie it together where you prefer, by importing them.
Every file starting with _ won't be compiled alone. Instead, if some other
file that doesn't start with _ imports it, it will be compiled within it.
-
The
@importtag syntax is based on the W3C specification. -
However it's behavior is different, much like you'll find in languages like Stylus.
-
The
@importcall will be replaced with the contents of the.cssit's pointing to. Do not forget this, your@importdirectives will be dropped and replaced with another file's contents. -
There's no way for keeping
@importdirectives in the output file.
To include a partial in your css, just:
- Name your patial accordingly so it starts with
_ - Include it in any of your
cssfiles by using the syntax
@import 'mypartial';
@import url('mypartial');You decide what mode you prefer.
- Partials are referenced relatively
- You can include
partialsinsidepartialsrecursively, but do not forget to@importthe top-levelpartialin anon-partial, otherwise the whole partials-chain will be left out.




