CSS plugin for Polvo
Want to see pretty graphs? Log in now!
npm install polvo-css
|6||downloads in the last week|
|30||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated 8 months ago|
|Keywords||polvo, plugin, build, system, tool, css|
With this plugin, Polvo can handle CSS source files.
You won't need to install it since it comes built in in Polvo.
Just put your
.css files in your
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.
@importtag syntax is based on the W3C specification.
However it's behavior is different, much like you'll find in languages like Stylus.
@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
- 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
partialsrecursively, but do not forget to
non-partial, otherwise the whole partials-chain will be left out.