Skip to content

cchamberlain/license-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inline licenses into Webpack's output bundle.

NPM

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.

license