Skip to content

vadimdemedes/cssor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSSOR


CSSOR


Browserify for CSS.

Installation

$ npm install --global cssor

Usage

$ cssor --help

	Usage
    $ cssor [options] [file]

  Options
    --transform, -t   Use a transformer for source files
    --output, -o      Write output to file
    --basedir, -b     Set base dir for input file

  Examples
    $ cat app.css | cssor -t myth -o dist/app.css
    $ cssor -i app.css -t myth > dist/app.css

Options

transform

Add a transformer (rework plugin). Can be set multiple times.

$ cssor -t rework-npm -t myth

output

Write output to the file, instead of stdout.

$ cssor -o dist/app.css

basedir

Change base directory for @import in stylesheets.

$ cssor -b styles

Recipes

Myth + @import for npm modules

myth and rework-npm are required:

$ npm install myth rework-npm --save

Now, we are good to go:

$ cssor -t rework-npm -t myth input.css > output.css

License

MIT © Vadim Demedes