npm.io
0.0.17 • Published 9 years ago

dependency-manifest-webpack-plugin

Licence
MIT
Version
0.0.17
Deps
1
Vulns
2
Weekly
0

Dependency Manifest

This webpack plugin will create manifest file for all your dependencies.

The plugin will create a JSON from all the external dependencies used by your project from the entry point you defined in your webpack file.

Usage

In your webpack.config.js:

const DependencyManifestPlugin = require('dependency-manifest-webpack-plugin');

module.exports = {
    // ...
    plugins: [
        // ...
        new DependencyManifestPlugin({
            // These are the default values
            packageLocation: path.join(process.cwd(), 'package.json'),
            output: 'dependency-manifest.json',
        }),
    ],
};

The following will generate a manifest file with all the dependencies used by your project with it's versions.

Example:

{
    "muject": "1"
}

Keywords