Skip to content

g8up/fis3-postpackager-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fis3-postpackager-header

NPM

a fis3 plugin, adding text to packaged resources' header

Install

npm install --global fis3-postpackager-header

Usage

const header = `/**
 * @author g8up
 * @mail g8up@qq.com
 */
`;

fis.media('production')
  .match('::package', {
    packager: fis.plugin('map', {
      'bundle.js': [
        'widget/**.js',
      ],
    }),
    postpackager: fis.plugin('header', {
      header,
    }),
  });

About

a fis3 plugin, adds a banner to the top of each packaged chunk.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors