Polvo CSS
With this plugin, Polvo can handle CSS source files.
Install
You won't need to install it since it comes built in in Polvo.
Enjoy.
Instructions
Just put your .css
files in your input
or aliased
dirs and it will be
ready for use.
Partials
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
@import
tag syntax is based on the W3C specification. -
However it's behavior is different, much like you'll find in languages like Stylus.
-
The
@import
call will be replaced with the contents of the.css
it's pointing to. Do not forget this, your@import
directives will be dropped and replaced with another file's contents. -
There's no way for keeping
@import
directives 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
css
files by using the syntax
;;
You decide what mode you prefer.
Final notes
- Partials are referenced relatively
- You can include
partials
insidepartials
recursively, but do not forget to@import
the top-levelpartial
in anon-partial
, otherwise the whole partials-chain will be left out.