0.5.1 • Published 8 years ago

license-pack v0.5.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

license-pack

npm version

license-pack is renamed to license-info-webpack-plugin

license-pack is a webpack plugin for making a list of package's LICENSE information, inspired by licensify.

$ npm install --save-dev license-pack
$ yarn add --dev license-pack

Usage

const LicensePack = require('license-pack').default;

module.exports = {
  entry: './src/js/index.js',
  output: {
    path: path.join(__dirname, 'dist/js'),
    filename: '[name].js'
  },
  plugins: [
    new LicensePack({
      glob: '{LICENSE,license,License}*'
    })
  ]
};

Note: license-pack needs webpack v3.0 or above

Options

  • glob
    • Glob pattern for LICENSE file
    • Default: '{LICENSE,license,License}*'
  • output
    • Output type: 'banner' or 'html'
      • 'banner': Append comment to top of bundled code
      • 'html': Generate html
    • Default: 'banner'
  • outputPath
    • Output path for generated html
    • If outputPath is './', ./license-[name].html are generated
    • This option is enabled if output: 'html' is set.
    • Default: './'
  • includeLicenseFile
    • Include and put LICENSE file
    • Default: true

LICENSE

MIT

0.5.1

8 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago