license-loader

Inline licenses into Webpack's output bundle.

APACHE-2.0 License

Downloads
89
Stars
7
Committers
1

license-loader

Inline licenses into Webpack's output bundle.

Install

npm i -D license-loader

Usage

Include it as a loader targeting imports from node_modules and it will parse license information from the import's package.json and common license files.

webpack.config.js

  module: {
    loaders: [
      { test: /\.js$/, include: /node_modules/, loader: 'license-loader' }
    ]
  }

Output

The first occurrence of each package (name / version combination) will get complete readable license information emitted.