PostCSS Banner
PostCSS plugin to add text banner and footer to resulting file.
Usage
Set banner
and footer
properties to add banner and/or footer to your resulting css (so use after minifier).
postcss(require('postcss-banner')({banner: 'banner'}))
yields
.foo {
}
Value will be converted to string and wrapped with spaces by default. Add *
or !
to avoid wrapping in spaces (and achieve nice multi-line comments for example).
postcss(require('postcss-banner')({banner: '*\n' +
' * multi\n' +
' * line\n' +
' * comment\n' +
' '}))
yields
.foo {
}
See PostCSS docs for examples for your environment.