3.0.3 • Published 1 year ago

postcss-header v3.0.3

Weekly downloads
5,752
License
MIT
Repository
github
Last release
1 year ago

postcss-header

Downloads Version

Add a header to a file.

Install

npm install postcss-header postcss --save-dev

Usage

const postcss = require('postcss');
const header = require('postcss-header');
const result = postcss(header({
  header: '/* A simple header */',
})).process('.foo{}');

console.log(result);
// > /* A simple header */
// > .foo{}

Options

header

  • Type: String
  • Default: ''
  • Alias: banner

The string will be put at the beginning of the CSS file.

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Chen Fengyuan