1.0.0 • Published 8 years ago

css-combine v1.0.0

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

css-combine

css-combine is a module/command-line utility that combines CSS files by resolving their @import directives.

Build status

Install

$ npm install [-g] css-combine

Usage

cli

$ css-combine /path/to/file > /path/to/build

module

var combine = require('css-combine')

var raw = '/path/to/file'
/*
  @import 'one.css';
  @import url(two.css);
  @import url('/path/to/three.css');
  @import "../to/four.css";
  @import url("five.css");
  @import url(https://resolves-external-files.too);

  body:before {
    content: 'Just regular CSS'
  }
*/

combine(raw).pipe(
  fs.createWriteStream('/path/to/build')
)

Note

If your @import directives use absolute file-system paths (like three.css in the above example), make sure you run css-combine from the root directory so that everything resolves correctly.

License

MIT

1.0.0

8 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

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