Skip to content

Commit 7964230

Browse files
adding banner
1 parent d8a6598 commit 7964230

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

rollup.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ const Config = ({en, inputPath = '', outputFile = 'stringToReactComponent', pf =
1414
file: `dist/${outputFile}${pfName}.umd${en === 'dev' ? '' : '.min'}.js`,
1515
format: 'umd',
1616
name,
17+
banner:
18+
'' +
19+
`/**
20+
* ${pkg.name} - ${pkg.description}
21+
*
22+
* @version v${pkg.version}
23+
* @homepage ${pkg.homepage}
24+
* @author ${pkg.author.name} ${pkg.author.email}
25+
* @license ${pkg.license}
26+
*/`,
1727
globals: {
1828
'react-dom': 'ReactDOM',
1929
react: 'React',

0 commit comments

Comments
 (0)