项目作者: g8up

项目描述 :
a fis3 plugin, adds a banner to the top of each packaged chunk.
高级语言: JavaScript
项目地址: git://github.com/g8up/fis3-postpackager-header.git
创建时间: 2017-08-22T12:09:45Z
项目社区:https://github.com/g8up/fis3-postpackager-header

开源协议:MIT License

下载


fis3-postpackager-header

NPM

a fis3 plugin, adding text to packaged resources’ header

Install

npm install —global fis3-postpackager-header

Usage

  1. const header = `/**
  2. * @author g8up
  3. * @mail g8up@qq.com
  4. */
  5. `;
  6. fis.media('production')
  7. .match('::package', {
  8. packager: fis.plugin('map', {
  9. 'bundle.js': [
  10. 'widget/**.js',
  11. ],
  12. }),
  13. postpackager: fis.plugin('header', {
  14. header,
  15. }),
  16. });