1.4.0 • Published 9 years ago

basswork v1.4.0

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

Basswork

CSS preprocessor for Basscss built with Rework

Rework Plugins Included:

  • Rework NPM
  • Rework Custom Media
  • Rework Vars
  • Rework Calc
  • Rework Plugin Colors

Install

npm install basswork

Usage

Node

Pass an unprocessed CSS string to Basswork, which will return the processed CSS.

var basswork = require('basswork');
var fs = require('fs');

var src = fs.readFileSync('./src/base.css', 'utf8');
var css = basswork(src);
fs.writeFileSync('./css/base.css', css);

Options

Pass Rework options as the second argument, and Rework stringify options as the third argument. Basswork also includes a namespace option to prefix styles with a string followed by a hyphen.

var css = basswork(src, { namespace: 'u' }, { compress: true });

Command Line

$ basswork in.css out.css
$ basswork --sourcemap in.css out.css

MIT License

1.4.0

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago