postinstall-css

0.9.3 • Public • Published

postinstall-css

This is a postinstall command plugin.

It runs postcss with these plugins (in that order):

  • postcss-import (for inlining imports)
  • postcss-url (for rebasing)
  • postcss-flexbugs-fixes
  • autoprefixer (for browsers compatibility)
  • reporter
  • cssnano (for minification)

Usage

The plugin can be called directly, or through postinstall. Directly:

require('postinstall-css')(inputs, output, options).then(function() {
 // done
});

Options

  • browsers: a string, environment for Browserslist
  • minify: pass minify: false to disable minification.

Caveats

Support for source maps is not yet available.

Package Sidebar

Install

npm i postinstall-css

Weekly Downloads

18

Version

0.9.3

License

MIT

Unpacked Size

4.22 kB

Total Files

5

Last publish

Collaborators

  • kapouer