1.4.0 • Published 10 years ago

basswork v1.4.0

Weekly downloads
8
License
MIT
Repository
github
Last release
10 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

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

11 years ago

1.1.0

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago