fis3-postpackager-copyright

0.1.1 • Public • Published

fis3-postpackager-copyright

Dependency Status devDependency Status NPM Version

A plugin for fis3 to prepend copyright to release files

How to use

Install

npm install fis3-postpackager-copyright -g

Add configure to fis-conf.js

默认,cssjs 文件会添加版权声明。

fis.match('::package', {
    postpackager: fis.plugin('copyright', {
        copyright: '/*your copyright*/'
        // copyright: function () {
        //     return '/*your copyright*/';
        // }
        // copyright: {
        //     file: 'xx/xx', // copyright file template
        //     data: {} // the data to apply to template, template variable syntax: ${xx}
        // }
    })
});

指定某些文件输出或不输出版权声明:

fis.match('/dep/**.{js,css}', {
    copyright: false // don't prepend the copyright to dependence files
});

Readme

Keywords

Package Sidebar

Install

npm i fis3-postpackager-copyright

Weekly Downloads

0

Version

0.1.1

License

ISC

Last publish

Collaborators

  • wuhuiyao