1.0.4 • Published 4 years ago

gitlab-ci-buildinfo-webpack-plugin v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Webpack plugin for creating a file containing gitlab-ci build information

License: MIT

Simple plugin which will take GitLab CI environment variables and write them to a file

Installation

npm i gitlab-ci-buildinfo-webpack-plugin --save-dev

Usage

const GitlabCIBuildInfoPlugin = require('gitlab-ci-buildinfo-webpack-plugin')

// webpack configuration
{
  plugins: [
    new GitlabCIBuildInfoPlugin({options})
  ]
}

List of possible options:

var opts = {
    // the name and path of the file containing the gitlab-ci build information, relative to the webpack output directory
    versionFileName: 'version.json'
};