Skip to content

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

Notifications You must be signed in to change notification settings

Song-aff/rollup-plugin-banner-obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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)` }})]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published