rollup-plugin-banner-obj

0.0.5 • Public • Published

rollup-plugin-banner-obj

you can specify the banner&footer to be set for the specified chunk

example

//方法1: 通过output传递
output:{
    bannerObj: { 'test.es.js': `import "./style.css"` },
    footerObj: { 'test.es.js': `console.log(version)` }
}
//方法2: 通过plugins参数传递
plugins: [ objBanner({banner:{ 'test.es.js': `import "./style.css"` },footer:{ 'test.es.js': `console.log(version)` }})]

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-banner-obj

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

1.77 kB

Total Files

3

Last publish

Collaborators

  • songpenfei