gitlab-ci-buildinfo-webpack-plugin
v1.0.4
Published
Webpack plugin for creating a file containing gitlab-ci build information
Maintainers
Readme
Webpack plugin for creating a file containing gitlab-ci build information
Simple plugin which will take GitLab CI environment variables and write them to a file
Installation
npm i gitlab-ci-buildinfo-webpack-plugin --save-devUsage
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'
};