fis3-postpackager-copyright
v0.1.1
Published
Prepend copyright for release files
Downloads
3
Readme
fis3-postpackager-copyright
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
默认,css
、js
文件会添加版权声明。
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
});