Skip to content

show project dependencies exact versions on production environment.

Notifications You must be signed in to change notification settings

RichieChoo/package-version-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package-version-plugin

Sometimes you want to know project dependencies exact versions on production environment.

Install

npm install --save-dev package-version-plugin

Usage

webpackConfig
var PackageVersionPlugin = require('package-version-plugin');

var webpackConfig = {
    plugins: [
        new PackageVersionPlugin({
            registry: "https://registry.npmjs.org/",
            outputFile: "test-version.html",
            name: "test",
            showDevDependencies:true,
            showDependencies:true,
            depFilterRegExp:/^test/,
            devDepFilterRegExp:/^\test/
        })
    ]
}
chainWebpack
const PackageVersionPlugin = require('package-version-plugin');

...
chainWebpack:config =>{
    config.plugin("PackageVersionPlugin").use(PackageVersionPlugin, [
        {
            registry: "https://registry.npmjs.org/",
            outputFile: "test-version.html",
            name: "test",
            showDevDependencies:true,
            showDependencies:true,
            depFilterRegExp:/^test/,
            devDepFilterRegExp:/^\test/
        }
    ]);
}
...

Feature

Plugin will collect dependencies version list and output version.json in the webpack bundle path

About

show project dependencies exact versions on production environment.

Resources

Stars

Watchers

Forks

Packages

No packages published