postcss-header
Add a header to a file.
Install
npm install postcss-header postcss --save-devUsage
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.