Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gitlab-ci-buildinfo-webpack-plugin with all npm packages installed. Try it out:

var gitlabCiBuildinfoWebpackPlugin = require("gitlab-ci-buildinfo-webpack-plugin")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

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

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

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'
};
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free