1.0.5-rc.19 • Published 8 months ago

@digigov/postcss-banner v1.0.5-rc.19

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

@digigov/postcss-banner

postcss-banner plugin to add text banner and footer to resulting file.

Usage

  • Asterisks to beginning of line are added automatically (use inline: false to disable)
  • Bang isn't added automatically (use important: true to enable)

Add PostCSS Banner to your build tool:

npm install --save-dev postcss postcss-banner

Set banner and/or footer properties to add banner and/or footer to your resulting css (so use after minifier).

Example:

postcss(require('postcss-banner')({banner: 'banner'}))

yields

/*
 * banner
 */
.foo {
}

Value will be converted to string and wrapped with spaces by default. Set inline to true to render the comment in a single line.

Example:

var postcss = require('gulp-postcss');
var postcssBanner = require('postcss-banner');

var banner = 'single line comment';

gulp.task('css', function () {
  return gulp.src('./css/src/*.css')
    .pipe(postcss(
      [
        postcssBanner({
          banner: banner,
          inline: true
        })
      ]))
    .pipe(gulp.dest('./css'));
});

yields

/* single line comment */
.foo {
}

Options

banner

Type: String

The string will be converted in a css comment and put at the beginning of the css file.

footer

Type: String

The string will be converted in a css comment and put at the end of the css file.

inline

Type: Boolean

Default: false

Render the banner all in one line.

important

Type: Boolean

Default: false

Add a bang to the comment. (eg. /*! banner v.0.0.1 */)

NOTE: Important css comments are generally preserved from being removed during a minification process.

1.0.5-60d81ed8

8 months ago

1.0.5-b4cd6916

8 months ago

1.0.5-rc.19

8 months ago

1.0.5-36b707c1

9 months ago

1.0.5-daaf7bdf

9 months ago

1.0.5-6e3977bc

9 months ago

1.0.5-113e6661

9 months ago

1.0.5-0edebf87

1 year ago

1.0.5-6c42d5eb

10 months ago

1.0.5-2445d5cb

11 months ago

1.0.5-f0a886ce

11 months ago

1.0.5-d57821ba

11 months ago

1.0.5-rc.17

12 months ago

1.0.5-rc.18

9 months ago

1.0.5-85c27c19

11 months ago

1.0.5-rc.13

12 months ago

1.0.5-rc.14

12 months ago

1.0.5-rc.15

12 months ago

1.0.5-rc.16

12 months ago

1.0.5-rc.10

1 year ago

1.0.5-rc.11

1 year ago

1.0.5-rc.12

1 year ago

1.0.4

1 year ago

1.0.4-fd2cea11

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.1.0-2a507fd6

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-51c931ab

2 years ago

1.0.0-23c81d9f

2 years ago

1.0.0-b0737a96

2 years ago

1.0.0-47312a12

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-b4257f67

2 years ago

1.0.0-a131264d

2 years ago

1.0.0-8b33e4c8

2 years ago

1.0.0-8ae63a77

2 years ago

1.0.0-77ee23d9

2 years ago

0.3.24-rc

2 years ago

1.0.0-eb2842b4

2 years ago

1.0.0-266e80f3

2 years ago

1.0.0-7c9716da

2 years ago

1.0.0-c768d137

2 years ago

1.0.0-290a96e2

2 years ago

1.0.0-002c630d

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-079f34f3d

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-75e5086d

2 years ago

1.0.0-758a1807

2 years ago

1.0.0-rc

2 years ago

1.0.0-60addd4a

2 years ago

1.0.0-05af31dd

2 years ago

1.0.0-8bbf3ef2

2 years ago

1.0.0-ab30975f

2 years ago

1.0.0-88820b1e

2 years ago

1.0.0-480e3d97

2 years ago

1.0.0-3bfc7d37

2 years ago

1.0.0-605437dc

2 years ago

1.0.0-e322b0cc

2 years ago

1.0.0-55e4210c

2 years ago

1.0.0-6b93ebf2

2 years ago

1.0.0-4e7b7994

2 years ago

1.0.0-00643e1d

2 years ago

1.0.0-21c8c3dc

2 years ago

1.0.0-871b6be5

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

3 years ago

0.3.20

3 years ago

0.3.19

3 years ago

0.3.19-alpha

3 years ago

0.3.17

3 years ago

0.3.18

3 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

4 years ago

0.3.8

4 years ago