observing/white

Name: white

Owner: Observe.it

Description: whitespace css pre-processor for finn

Created: 2015-02-09 15:34:18.0

Updated: 2015-02-09 15:35:15.0

Pushed: 2017-07-04 13:51:39.0

Homepage: null

Size: 3

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

white

Version npmBuild StatusDependenciesCoverage Status

White is a small conditional significant whitespace processor for finn and rework. It performs a really basic check to see if a given file already processed for significant whitespace.

Install

The module is released in npm and can be installed using:

install --save white

It's advised to use finn as processing engine as that's what we're using our tests.

Usage

As white is a plugin for finn we need to setup a finn instance first. I assume you've already got it required an setup like:

 strict';

finn = require('finn')()
whitespace = require('white');

Now that we have a finn instance we can assign white as pre filter:

.pre.use(whitespace);

If you are using modules that process @import statements you might also want to pre-process those files, usually you can just supply the white function direction as transform method:

.use('import', require('rework-import')({ transform: whitespace }));

And that's all you need to know about this module!

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.