small plugin to create `license.xml` snippet of your rollup runtime dependencies
MIT License
Creates a license.xml file from all your dependencies see template
$ npm install --save-dev rollup-plugin-license-xml
import license from 'rollup-plugin-license-xml'
const license = require('rollup-plugin-license-xml')
export default {
entry: 'module.js',
dest: 'index.js',
format: 'cjs',
plugins: [license()]
}
rollup({
entry: 'main.js',
plugins: [license()]
}).then(...)
logged to console on rollup completion
<other>
<description>rollup-plugin-license-xml</description>
<locations>
<file>/test/_fixtures/bundle-a.js</file>
</locations>
<licenses>
<license>
<name>MIT</name>
<url>https://raw.githubusercontent.com/edewit/rollup-plugin-license/master/LICENSE</url>
</license>
</licenses>
</other>
<other>
...
process.cwd()
null
null
module
analysis objects