1.0.5 • Published 7 years ago

packages-versions-webpack-plugin v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

packages-versions-webpack-plugin

this package create a text file that contain the correct dependencies of the project

this plugin create a version.txt file in the entry folder that contain the current packages that install on the project

install this plugin

  1. npm install --save-dev packages-versions-webpack-plugin
  2. in the webpack.config.js
    var PackagesVersionsPlugin = require('packages-versions-webpack-plugin');
  1. in the plugin section
    var webpackConfig = {
        ...
        plugins: [
            ...
            new PackagesVersionsPlugin(),
            ...
        ],
        ...
};

using this plugin in the code

this plugin can be using in the code using raw-loader like so

    console.info(require('!!raw-loader!./versions.txt'));

notice that you need to install raw-loader in order to use this snippet

version releases

1.0.5

  • create the versions.txt only on the creating of the plugin (a.k.a. first webpack build)

1.0.4

  • bug fix, change path to path2VersionTxt

1.0.3

  • add support to Angular2, if there is an entry.app then put the version.txt there.

1.0.2

  • use try and catch in the creating of the version.txt in order to dismiss npm ls error like peer dependencies
  • update README.md file
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago