JSPM

  • Created
  • Published
  • Downloads 7717
  • Score
    100M100P100Q14890F

Minify CSS file. That's only.

Package Exports

  • csswring

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csswring) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CSSWring

Minify CSS file. That's only.

Written with PostCSS.

INSTALLATION

$ npm install csswring

QUICK USAGE

#!/usr/bin/env node

'use strict';

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

var css = fs.readFileSync('test.css', {
  encoding: 'utf8'
});
fs.writeFileSync('test.min.css', csswring.wring(css).css);

CLI USAGE

This package also installs a command line interface.

$ node ./node_modules/.bin/csswring --help
Usage:
  csswring [options] [INPUT] [OUTPUT]

Description:
  Minify CSS file. That's only.

Options:
      --sourcemap  Create source map file.
  -h, --help       Show this message.
  -v, --version    Print version information.

LICENSE

MIT: http://hail2u.mit-license.org/2014